Coder Social home page Coder Social logo

No output when run demo about light-lpr HOT 6 CLOSED

lqian avatar lqian commented on July 23, 2024
No output when run demo

from light-lpr.

Comments (6)

lqian avatar lqian commented on July 23, 2024

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.

AIGirl10 avatar AIGirl10 commented on July 23, 2024

@lqian

Thank you so much for fast reply !

  1. Tried to test on another image. This one

and it gave this output.

plateNo: 粤WP9P

what can be the reason ?

  1. 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.

lqian avatar lqian commented on July 23, 2024

please send picture which can be easy to access.

from light-lpr.

lqian avatar lqian commented on July 23, 2024

@AIGirl10 please try community branch code base.

from light-lpr.

rsingh2083 avatar rsingh2083 commented on July 23, 2024

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.

lqian avatar lqian commented on July 23, 2024

please try community branch source code.

from light-lpr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.