eguid / vlpr4j Goto Github PK
View Code? Open in Web Editor NEW基于opencv的java车牌检测识别库(支持linux、windows、mac、Android平台),本项目已不再维护更新!
License: Apache License 2.0
基于opencv的java车牌检测识别库(支持linux、windows、mac、Android平台),本项目已不再维护更新!
License: Apache License 2.0
java.lang.RuntimeException: C:\projects\bytedeco\javacpp-presets\opencv\cppbuild\windows-x86_64\opencv-3.1.0\modules\ml\src\svm.cpp:2122: error: (-212) Missing or invalid SVM type in function cv::ml::SVMImpl::read_params
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:804)
at org.bytedeco.javacpp.Loader.load(Loader.java:613)
at org.bytedeco.javacpp.Loader.load(Loader.java:530)
at org.bytedeco.javacpp.opencv_core.(opencv_core.java:10)
at cc.eguid.charsocr.core.PlateLocate.(PlateLocate.java:333)
at cc.eguid.charsocr.core.PlateDetect.(PlateDetect.java:124)
at cc.eguid.charsocr.PlateRecognition.(PlateRecognition.java:30)
Caused by: java.lang.UnsatisfiedLinkError: no opencv_imgproc310 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:804)
at org.bytedeco.javacpp.Loader.load(Loader.java:604)
... 5 more
有没有解决方案
code exception in:
public Vector<Mat> plateLocate(Mat src) { // Convert it to gray 将图像进行灰度化 cvtColor(src_blur, src_gray, CV_RGB2GRAY);}
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file C:\projects\bytedeco\javacpp-presets\opencv\cppbuild\windows-x86_64\opencv-3.1.0\modules\imgproc\src\color.cpp, line 8000
Exception in thread "main" java.lang.RuntimeException: C:\projects\bytedeco\javacpp-presets\opencv\cppbuild\windows-x86_64\opencv-3.1.0\modules\imgproc\src\color.cpp:8000: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor
at org.bytedeco.javacpp.opencv_imgproc.cvtColor(Native Method)
at cc.eguid.charsocr.core.PlateLocate.plateLocate(PlateLocate.java:77)
at cc.eguid.charsocr.core.PlateDetect.plateDetect(PlateDetect.java:26)
at cc.eguid.charsocr.PlateRecognition.plateRecognise(PlateRecognition.java:43)
at cc.eguid.charsocr.PlateRecognition.main(PlateRecognition.java:96)
跑res下面的测试图没问题
一旦切换到自己的图片就报错:
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file C:\projects\bytedeco\javacpp-presets\opencv\cppbuild\windows-x86_64\opencv-3.1.0\modules\imgproc\src\color.cpp, line 8000
一开始以为是图片问题 我还特意拿了手机去楼下拍摄了
结果发现不是那么回事 就是程序无法使用
在安卓上面怎么使用?我安卓里面用的 org.opencv.core.Mat.Mat() 创建的 Mat ,但是调用你的函数就不行,你的函数用的是 opencv_core.Mat ,两个不知道怎么转换
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.