parkpow / deep-license-plate-recognition

Automatic License Plate Recognition (ALPR) or Automatic Number Plate Recognition (ANPR) software that works with any camera.
https://platerecognizer.com/
MIT License
531 stars 124 forks source link

How to reduce confidence threshold for lpr reading? #24

Closed sriramcu closed 4 years ago

sriramcu commented 4 years ago

Is it possible to get a license plate with a lower confidence value if no readings appear? Like I'm fine with an LPR reading with a score of 0.5, etc.

marcbelmont commented 4 years ago

Yes, this is possible. You can pass config=dict(threshold_o=.5) to recognition_api.

https://github.com/marcbelmont/deep-license-plate-recognition/blob/master/plate_recognition.py#L48