yushulx / passport-mrz-recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passport MRZ Recognition

A C/C++ sample of Passport MRZ recognition implemented with Dynamsoft OCR SDK.

Requirements

30-day FREE Trial License

Get a free trial license and save it to license.txt.

How to Build and Run

passport mrz recognition

Windows

  1. Copy *.lib files to platform/windows/lib folder and copy *.dll files to platform/windows/bin folder.

  2. Create a build folder:

    mkdir build
    cd build
    
  3. Configure the project.

    • Command-line app

      cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
      
    • GUI App with OpenCV

      cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DENABLE_OPENCV=TRUE ..
      
  4. Build and run the app:

    cmake --build . --config release
    cd release
    mrz license.txt
    

Linux

  1. Install CMake:

    sudo apt-get install cmake
    
  2. Copy *.so files to platform/linux folder.

  3. Create a build folder:

    mkdir build
    cd build
    
  4. Configure the project.

    • Command-line app

      cmake ..
      
    • GUI App with OpenCV

      cmake -DENABLE_OPENCV=TRUE ..
      
  5. Build and run the app:

    cmake --build . --config release
    ./mrz license.txt
    

Blog

Passport MRZ Recognition with Dynamsoft C++ OCR SDK

About


Languages

Language:C++ 68.8%Language:C 28.3%Language:CMake 2.9%