67. C# calls Paddle+OCR (using ncnn library) generated by Visual Studio 2019 to complete business tasks

Basic idea: Here I use the android code written by Fei Ge, take out the pure C++ code logic, and try to convert the paddle+ocr model myself. The conversion can be successful. I will not elaborate on the process of generating the ncnn model and the post-writing process of OCR recognition. Here The purpose to be achieved is to use c# to call ncnn's ocr project to complete the business support of the corresponding department~

1. In the test results of window10+ncnn+clion+mingw32, the source code has been slightly modified and will not be released here. Only the directory and identification results are posted. You can skip and directly use vs development 18, window10+Clion2022+minGW to compile opencv4 . 4.0+opencv_contrib4.4.0 and tested_sxj731533730’s blog-CSDN blog

1) Open the CLion integrated development environment and set various encodings to UTF-8 in the settings interface.

Then, double-click Shift, enter "Registry" in the pop-up search bar, click "Registry..." to enter the software registry interface, and remove the default check mark in "run.processes.with.pty", that is, do not select this item. In this way, the output of the console program is consistent with Chinese parsing.

cmakelists.txt

cmake_minimum_required(VERSION 3.16)
project(untitled4)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# Where to 

Guess you like

Origin blog.csdn.net/sxj731533730/article/details/131180964