Skip to content

cnlite is a c# library to do chinese ocr based on project chineseocr_lite

License

Notifications You must be signed in to change notification settings

cronz/cnlite_cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cnlite_cs

cnlite is a c# library to do chinese ocr based on project chineseocr_lite

Overview

    1. cnlite reused onnx models pretrained by chineseocr_lite project
    1. This project is translated from python code almost 99% percent from chineseocr_lite project

Usage

    1. download the project code
    1. download onnx models file (crnn_lite_lstm.onnx and dbnet.onnx) from chineseocr_lite
    1. use microsoft visual studio to download the necessary library
    1. run the demo project
    1. onnx models are located at application_root/conf/.

Dependencies

How to use EmguCV

    1. download EmguCV from Download and installation page
    1. installEmguCV
    1. 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
    1. Be careful to configure target Platform based on "x84" or "x64" folder

说明

本项目是基于 chineseocr_lite 的源代码和onnx model,本项目只是翻译了原有的python代码为C#代码

使用方法

    1. 下载本项目代码
    1. 从chineseocr_lite 项目中下载onnx models
    1. 在vs 2015/19中,用NuGet 下载onnxruntime
    1. 注意,onnx训练文件请放到 conf 文件夹里面

使用环境

EmguCV 的使用

    1. 本项目使用的EmguCV,是OpenCV 的C# API调用版本
    1. 要先下载安装EmguCV
    1. 注意要复制相应的 x64 或者 x86 文件夹的所有文件到编译路径下面。EmguCV的安装路径下面有对应的x86/x64文件夹,请将所有的动态库复制到C#工程编译路径(一般是bin\Debug)下面。请参考

About

cnlite is a c# library to do chinese ocr based on project chineseocr_lite

Topics

Resources

License

Stars

Watchers

Forks

Languages