faisalthaheem / open-lpr

Open Source and Free License Plate Recognition Software
Apache License 2.0
161 stars 26 forks source link

No value in OCR tag #24

Open svenny71 opened 2 years ago

svenny71 commented 2 years ago

Hi faisalthaheem,

I'm testing your software and I'm not able to get a result in OCR tag of JSON response:

curl -F "image=@XK50HF.jpg" localhost:5000/process

{"_id":"a0cfe6f7-4b99-4cf3-94a8-7992a4f5ae4f","creationtime":1655916903.771078,"detections":{"boxes":[[164,128,490,245]],"classes":[2],"scores":[0.9779990911483765]},"filename":"XK50HF.jpg","imgDimensions":{"channels":"RGB","height":665,"width":387},"ocr":[],"unique_name":"a0cfe6f7-4b99-4cf3-94a8-7992a4f5ae4f_XK50HF.jpg"}

I've tried a lot of images, but always get the same results.

Many thanks in advance for your response.

Cheers, Svenny

faisalthaheem commented 2 years ago

Hi, thanks for opening this issue. If possible could you please attach a couple of images for my analysis?

Thanks

On Wed, Jun 22, 2022, 7:01 PM svenny71 @.***> wrote:

Hi faisalthaheem,

I'm testing your software and I'm not able to get a result in OCR tag of JSON response:

curl -F @.***" localhost:5000/process

{"_id":"a0cfe6f7-4b99-4cf3-94a8-7992a4f5ae4f","creationtime":1655916903.771078,"detections":{"boxes":[[164,128,490,245]],"classes":[2],"scores":[0.9779990911483765]},"filename":"XK50HF.jpg","imgDimensions":{"channels":"RGB","height":665,"width":387},"ocr":[],"unique_name":"a0cfe6f7-4b99-4cf3-94a8-7992a4f5ae4f_XK50HF.jpg"}

I've tried a lot of images, but always get the same results.

Many thanks in advance for your response.

Cheers, Svenny

— Reply to this email directly, view it on GitHub https://github.com/faisalthaheem/open-lpr/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTOQ4MX4337IDAO2MVQBVDVQNBHPANCNFSM5ZQ7HTJA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

svenny71 commented 2 years ago

Hi, and thanks for your reply!

These are 3 images I used for testing:

1) https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS-ekWNXtXQuXGI4hGKlp5B3-VECUJL5FPWnw&usqp=CAU OCR tag empty

2) https://media.istockphoto.com/photos/classic-mercedesbenz-sl-450-with-a-brexit-plate-parked-in-a-street-in-picture-id1132133984?k=20&m=1132133984&s=612x612&w=0&h=8IAUrPv5zlc6Qgnpj-77gGuXga7RfTsjaCycAaz9tMM= OCR tag empty

3) https://www.periodicoitaliano.it/wp-content/uploads/2022/04/targa-ZA.jpg OCR tag is "ZA" only (second row is not read). If I remember correctly, two lines plates were recognized by the demo some days ago.

I've tried to upload those images on your demo, but it always timeouts now.

All images I have tested come from the web, probably they're not so good for this purpose...

Thanks!

Cheers, Svenny

faisalthaheem commented 2 years ago

Hi Svenny,

Thanks a lot for sharing these. I will go over them over the weekend and get back to you.

On Wed, Jun 22, 2022 at 11:21 PM svenny71 @.***> wrote:

Hi, and thanks for your reply!

These are 3 images I used for testing:

1.

https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS-ekWNXtXQuXGI4hGKlp5B3-VECUJL5FPWnw&usqp=CAU OCR tag empty 2.

https://media.istockphoto.com/photos/classic-mercedesbenz-sl-450-with-a-brexit-plate-parked-in-a-street-in-picture-id1132133984?k=20&m=1132133984&s=612x612&w=0&h=8IAUrPv5zlc6Qgnpj-77gGuXga7RfTsjaCycAaz9tMM= OCR tag empty 3.

https://www.periodicoitaliano.it/wp-content/uploads/2022/04/targa-ZA.jpg OCR tag is "ZA" only (second row is not read). If I remember correctly, two lines plate were recognized by the demo some days ago.

I've tried to upload those images on your demo, but it always timeouts now.

All images I have tested come from the web, probably they're not so good for this purpose...

Thanks!

Cheers, Svenny

— Reply to this email directly, view it on GitHub https://github.com/faisalthaheem/open-lpr/issues/24#issuecomment-1163611307, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTOQ4LEQ5FTLKSLPSHJN6LVQN7VFANCNFSM5ZQ7HTJA . You are receiving this because you commented.Message ID: @.***>

gkomix88 commented 1 year ago

Hi Mr. Faisalthaheem,

I am facing the same issue, OCR is empty. Would it be because the model is not specified?

KyleNewman97 commented 2 months ago

I had to reduce the confidence to 0.5 the ocr.yaml file of the open-lpr-ocr-1 container to start to get OCR results.