Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Decode 1D/2D Barcodes from WebP Images with Dynamsoft Barcode Reader

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.

Prerequisites

License Key

Get a 30-day free trial license key and save it in a file named license.txt.

Usage

C/C++

  1. Create a build directory and navigate to it:

    mkdir build
    cd build
  2. Configure and build the project using CMake:

    # Linux
    cmake ..
    
    # Windows
    cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
    
    cmake --build .
  3. 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

Reference

Blog

How to Decode QR Code from WebP Images in C++ and Python