ljmerza / frigate_plate_recognizer

Identify license plates via Plate Recognizer and add them as sublabels to Frigate
127 stars 17 forks source link

Using Codeproject.ai not being queried #58

Closed BradFD closed 5 months ago

BradFD commented 5 months ago

Using Codeproject.ai, running and alpr module is green and up waiting for request. Config seems to set right: code_project: api_url: http://192.168.0.45:32168/v1/image/alpr

Script is contacting container but not getting any hits on snapshots that have good plates and seeing this in debug log: 2024-06-06 22:38:27,267 - main - DEBUG - Getting snapshot for event: 1717727810.830089-w7qc1l, Crop: True 2024-06-06 22:38:27,267 - main - DEBUG - event URL: http://192.168.0.42:5030/api/events/1717727810.830089-w7qc1l/snapshot.jpg 2024-06-06 22:38:27,658 - main - DEBUG - Getting plate for event: 1717727810.830089-w7qc1l 2024-06-06 22:38:27,658 - main - ERROR - Plate Recognizer is not configured

Other times the log says: 2024-06-06 22:38:26,460 - main - DEBUG - Getting snapshot for event: 1717726480.222293-70cduv, Crop: True 2024-06-06 22:38:26,460 - main - DEBUG - event URL: http://192.168.0.42:5030/api/events/1717726480.222293-70cduv/snapshot.jpg 2024-06-06 22:38:26,819 - main - DEBUG - Getting plate for event: 1717726480.222293-70cduv 2024-06-06 22:38:26,819 - main - DEBUG - Maximum number of AI attempts reached for event 1717726480.222293-70cduv: 21

Is it not utilizing codproject.ai correctly and still trying to use plate recognizer? Even though I took out all plate recognizer from the config?

There are clean good snaps of plates it should be seeing.....codeporject.ai servers in ALPR module says "Requests: 0" even after lots of log attempts by this. So it's like it isn't actually calling it correctly. Tried changing api_url path to /v1/vision/alpr same result. It seems either isn't sending request or sending it to wrong place even though I have checked it over and over.

BradFD commented 5 months ago

I figured it out, It was indention of code_project: config line