- C++ compiler support C++ 14
- CMake (at least 3.19)
- OpenMP
- OpenCV
- glslang (if you need to build ncnn)
- protobuf (if you need to build ncnn)
- ncnn
- args-parser
If you doesn't install args-parser or ncnn, run:
git submodule update --init --recursive
mkdir build && cd build
# Arch user can run `cmake .. -DUSE_SYSTEM_NCNN=ON` to use system ncnn
cmake ..
make
cd build
./chineseocr-ncnn -i ../test.jpg -l 600
# See usage
./chineseocr-ncnn -h