ljmerza / frigate_plate_recognizer

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

__main__ - DEBUG - duplicated snapshot from Frigate as top_score from before and after are the same #40

Closed rhamblen closed 4 months ago

rhamblen commented 4 months ago

I noticed in my logs Im getting the following message sometimes... __main__ - DEBUG - duplicated snapshot from Frigate as top_score from before and after are the same I think the snapshot is still being sent to plate_recognizer and using a decode.

Is it possible to just not process the snapshop if this is happening?

rhamblen commented 4 months ago
ignore me!!!!

    # limit api calls to plate checker api by only checking the best score for an event
    if(before_data['top_score'] == after_data['top_score'] and after_data['id'] in CURRENT_EVENTS) and not config['frigate'].get('frigate_plus', False):
        _LOGGER.debug(f"duplicated snapshot from Frigate as top_score from before and after are the same: {after_data['top_score']} {after_data['id']}")
        return True
    return False