aleyn97 / lpr Goto Github PK
View Code? Open in Web Editor NEWAndroid 车牌识别--OCR
Home Page: https://github.com/AleynP/LPR
License: Apache License 2.0
Android 车牌识别--OCR
Home Page: https://github.com/AleynP/LPR
License: Apache License 2.0
应用可以跑起来,但是识别车牌识别不出来,我看log是说加载System.loadLibrary("opencv_info");这个库找不到
解压失败,model文件损坏、、、
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.Display.getRealMetrics(android.util.DisplayMetrics)' on a null object reference
at com.pcl.ocr.scanner.ScannerView.getPreviewRatio(ScannerView.java:138)
at com.pcl.ocr.scanner.ScannerView.initUseCase(ScannerView.java:120)
at com.pcl.ocr.scanner.ScannerView.lambda$initCamera$0$ScannerView(ScannerView.java:100)
at com.pcl.ocr.scanner.-$$Lambda$ScannerView$S9Jc7nAK8ybGVA9Y6euMO_ze54w.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
您好!项目我已成功运行,但是目前车牌在扫描框内还是不能识别车牌
protected void onPostExecute(String str)
在这个方法回调的str都是null
OpenCV(3.4.6) Error: Unspecified error (FAILED: ReadProtoFromBinaryFile(param_file, param). Failed to parse NetParameter file: /storage/emulated/0/lpr/SegmenationFree-Inception.caffemodel) in void cv::dnn::ReadNetParamsFromBinaryFileOrDie(const char*, opencv_caffe::NetParameter*), file /build/3_4_pack-android/opencv/modules/dnn/src/caffe/caffe_io.cpp, line 1165
本人可提供一手车牌检测和车牌识别商用级别数据集,数据简介见链接:https://www.bilibili.com/video/bv1kU4y1e7Sb
您好!我项目能够成功跑起,但是识别车牌没反应,同时结果也没有,请问一下什么问题
请问我想得到车牌底色的预测结果, 有办法实现吗?
比如蓝牌 黄牌 黑牌 白牌 绿牌
2020-06-09 11:41:04.379 25953-25953/com.pcl.lpr E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.pcl.lpr, PID: 25953
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.Display.getRealMetrics(android.util.DisplayMetrics)' on a null object reference
at com.pcl.ocr.scanner.ScannerView.getPreviewRatio(ScannerView.java:138)
at com.pcl.ocr.scanner.ScannerView.initUseCase(ScannerView.java:120)
at com.pcl.ocr.scanner.ScannerView.lambda$initCamera$0$ScannerView(ScannerView.java:100)
at com.pcl.ocr.scanner.-$$Lambda$ScannerView$S9Jc7nAK8ybGVA9Y6euMO_ze54w.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:914)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:7601)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
集成到项目里,首次可以正常预览LPRActivity,再次进入预览界面LPRActivity后app崩溃, 在ScannerView里的方法getPreviewRatio 中代码mPreviewView.getDisplay().getRealMetrics(metrics);
getDisplay()为null,这是初始化流程问题吗?需要完全退出app后,再次进入才可以预览,望赐教,谢谢
一直是下面的错误
CMake Error at CMakeLists.txt:20 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
可提供车牌黄绿蓝数据集q:1041357701
麻烦把camerax替换回原来的版本
我在windows下编译没有通过,能提供编译出来的so库吗,我直接验证一下看看效果可以吗?多谢
flutter也有这个插件,是您开发的吗?
测试发现,只支持Android 10,往下系统都无法识别
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.