This repository provides examples showcasing how to easily decode QR codes and other barcode formats from WebP images using Dynamsoft Barcode Reader in C/C++ and Python applications.
- Dynamsoft Barcode Reader
-
Python SDK
pip install dbr opencv-python
- libwebp-1.2.1
Get a 30-day free trial license key and save it in a file named license.txt
.
C/C++
-
Create a build directory and navigate to it:
mkdir build cd build
-
Configure and build the project using CMake:
# Linux cmake .. # Windows cmake -DCMAKE_GENERATOR_PLATFORM=x64 .. cmake --build .
-
Run the application:
./main <webp file> license.txt
Python
Run the Python script with the WebP file and license key as arguments:
python main.py <webp file> license.txt