cnlite is a c# library to do chinese ocr based on project chineseocr_lite
-
- cnlite reused onnx models pretrained by chineseocr_lite project
-
- This project is translated from python code almost 99% percent from chineseocr_lite project
-
- download the project code
-
- download onnx models file (crnn_lite_lstm.onnx and dbnet.onnx) from chineseocr_lite
-
- use microsoft visual studio to download the necessary library
-
- run the demo project
-
- onnx models are located at application_root/conf/.
-
- .net framework 4.6.1
-
- download EmguCV from Download and installation page
-
- installEmguCV
-
- Copy library to your target path, the required vcrt dlls are included in the "x86" and "x64" folder. You will be ready as long as you copy all the unmanaged dlls in the "x86" and "x64" folder to the folder of executable
-
- Be careful to configure target Platform based on "x84" or "x64" folder
本项目是基于 chineseocr_lite 的源代码和onnx model,本项目只是翻译了原有的python代码为C#代码
-
- 下载本项目代码
-
- 从chineseocr_lite 项目中下载onnx models
-
- 在vs 2015/19中,用NuGet 下载onnxruntime
-
- 注意,onnx训练文件请放到 conf 文件夹里面
-
- .net framework 4.6.1
-
- 本项目使用的EmguCV,是OpenCV 的C# API调用版本
-
- 要先下载安装EmguCV
-
- 注意要复制相应的 x64 或者 x86 文件夹的所有文件到编译路径下面。EmguCV的安装路径下面有对应的x86/x64文件夹,请将所有的动态库复制到C#工程编译路径(一般是bin\Debug)下面。请参考