Use easyPR to call openCV dynamic library to realize Chinese license plate recognition in java version

EasyPR is a Chinese C++ open source license plate recognition system, its goal is to become a simple, efficient and accurate license plate recognition engine.

"Lele/EasyPR-Java" developed the java version of EasyPR, but did not upload the lib directory, which may cause many students to fail to run. Through exploration, I have added maven configuration and usage instructions on the basis of my project, which is convenient for the majority of code farmers to use for reference. The git address of the original project: https://git.oschina.net/coca_le_cola/EasyPR-Java.git, and the git address after my arrangement: http://git.oschina.net/lgcjava/EasyPR-java.




Downloads and Installation Download and install
a copy of the Git clone to your local computer or directly download the zip compression. EasyPR-Java uses maven management, you need to install maven in advance, and configure the variable M2_REPO in eclipse to point to the local maven configuration library.

In addition, opencv-2.4.11.exe needs to be installed when this project is running, please download it from http://opencv.org/ official website and install it. The installation process is actually just decompression.

Eclipse

1. Execute maven eclipse:eclipse in the project root directory and then use Eclipse to directly import the EasyPR directory.
2. Specify src and res as the source code directory
3. In project--properies--java-build-path, select opencv*.jar, and specify the native liberary directory as $%OPENCV_HOME%\build\java\x64
4. Sometimes the error Failed to write core dump. Minidumps are not enabled by default on client versions of Windows is reported, and the parameter configuration for the virtual machine has not been found, which can be solved.
5.GeneralTest is used for batch testing, but openCV does not support Chinese characters in file names. When there is Chinese in the file name, an error will be reported:
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file ........\opencv\modules\imgproc\src\ color.cpp, line 3739
So when batch testing, you can use the general_test2 directory.
6.jdk must be the same as the system number, that is, use 64 or 32 at the same time.


Required Software
This version has been tested on the following platforms:

windows10 64bit
Eclipse Java EE IDE for Web Developers. Version: Mars.2 Release (4.5.2)
jdk1.7-64 when running
junit 4

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327100400&siteId=291194637