Comments (6)
It is missed detection for plate. Maybe the model has changed. or you can try a low threshold for PNet, RNet and ONet.
from light-lpr.
Thank you so much for fast reply !
- Tried to test on another image. This one
and it gave this output.
plateNo: 粤WP9P
what can be the reason ?
- When kept 0.4 as threshold for P, R and Onet it is gave me following result on this image
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /build/opencv-QiBZO9/opencv-3.2.0/modules/core/src/matrix.cpp, line 522
terminate called after throwing an instance of 'cv::Exception'
what(): /build/opencv-QiBZO9/opencv-3.2.0/modules/core/src/matrix.cpp:522: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat
I am using the original demo example given. in with Detect function is commented and calling recognize function.
/*
* mtcnn_test.cpp
*
* Created on: Jun 25, 2019
* Author: lqian
*/
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <assert.h>
#include "mlpdr/MLPDR.h"
using namespace std;
using namespace mlpdr;
using namespace cv;
int main(int argc, char ** argv) {
MLPDR detector(argv[1], 0.4f, 0.4f, 0.4f);
Mat img = imread(argv[2]);
assert(!img.empty());
TickMeter tm;
tm.start();
// std::vector<mlpdr::PlateInfo> plateInfos = detector.Detect(img, 40, 3); // 608.23 ms
vector<PlateInfo> plateInfos = detector.recognize(img);
tm.stop();
printf("detect cost: %f (ms)\n", tm.getTimeMilli());
cout<<"\nsize:"<<plateInfos.size();
for (auto pi: plateInfos) {
cout << "plateNo: " << pi.plateNo << endl;
}
}
Please let me know if I am doing something wrong. Thank you !
from light-lpr.
please send picture which can be easy to access.
from light-lpr.
@AIGirl10 please try community branch code base.
from light-lpr.
When trying to run demo on x86, it is building successfully. But when trying to run it, it is not giving any output. The output vector is empty
vector<PlateInfo> plateInfos = detector.recognize(img); tm.stop(); printf("detect cost: %f (ms)\n", tm.getTimeMilli()); /* Printing vector size */ cout<<"\nsize:"<<plateInfos.size();it is giving 0 as an output on this image
@lqian can you please check this ? Thank you !
Hi,
I ran this ./examples/demo ../models/ ../images/20201005161220950.jpg
, but the only output Im getting is :-
initialized!
done ProposalNet with 60 proposal
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
rnet run session and on copy to host
detect cost: 49654.972916 (ms)
Can anyone please help me
from light-lpr.
please try community branch source code.
from light-lpr.
Related Issues (20)
- CXX compiler issue on raspberry pi HOT 1
- make 失败,报错2 HOT 1
- undefined reference to `std::thread::_State::~_State()@GLIBCXX_3.4.22' HOT 2
- 编译测试,出现如下问题 HOT 1
- How can I create a gui as shown in your demo video HOT 1
- 数据支持
- Compilation error on windows x64
- 可提供车牌黄绿蓝数据集
- 实际测试效果不理想 HOT 1
- 能否支持十几类车牌的检测 HOT 1
- 车牌识别商用级别数据集
- How to train model OCR for any country HOT 1
- 建议使用cpython实现python的接口,识别率这么高,关注度肯定飞一般的上去 HOT 1
- 模型训练代码 HOT 1
- 400星放新能源的承诺拿掉了?
- demo 跑起来 段错误 HOT 2
- 专业版和商业版如何获得? HOT 1
- 什么玩意,假开源 HOT 1
- 就凭作者写的是“中华人民共和国**车牌”,就必须要给作者点个star!!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from light-lpr.