alpr-unconstrained icon indicating copy to clipboard operation
alpr-unconstrained copied to clipboard

Prediction For the Sample Images

Open Guardian99 opened this issue 5 years ago • 7 comments

After running the command it gets executed with the final line being Performing OCR... and it exits then. In the output folder specified there are a few images and a CSV File but that CSV files does not contain the detected License Plate Number. Could someone please tell where is the prediction for the sample images stored or if i am some missing some step not mentioned in the repository. Any help would be really appreciated.

Guardian99 avatar Apr 07 '20 08:04 Guardian99

Do you use Ubuntu OS?

khawar-islam avatar Apr 10 '20 05:04 khawar-islam

Yes,I do. The environment is similar to the one mentioned in the repository. The code gets executed but I am unable to get the prediction out of the test sample images. While training , it shows 0 cars found and at the end of it OCR done.

Guardian99 avatar Apr 10 '20 05:04 Guardian99

Could you please see images?. You have to go tmp directory where you will found all detected images.

khawar-islam avatar Apr 11 '20 03:04 khawar-islam

There are no detected images. The model does not predict anything. It simply mimics the input image. If you could read my doubt again and tell if you were able to run this project from detection to prediction and results then it would be really helpful.

Guardian99 avatar May 15 '20 15:05 Guardian99

@Guardian99 I was also dealing with same problem and then I tested it on python2.7 by creating virtual environment. All works well. Just change the python version and it will work fine.

muhammadabdullah34907 avatar May 21 '20 21:05 muhammadabdullah34907

If your problem is with "0 cars detected", change this line

R = [r for r in R if r[0] in ['car', 'bus']]

to

R = [r for r in R if r[0] in [b'car', b'bus']]

sinclairnick avatar May 27 '20 00:05 sinclairnick

@sinclairnick It working for me. Thank you!

C0NGTRI123 avatar Sep 10 '22 03:09 C0NGTRI123