ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
408 stars 128 forks source link

I can't limit the uploaded pictures to platerecognizer to 1 #386

Closed connectnet closed 3 years ago

connectnet commented 3 years ago

Event Server version app:6.1.21, pyzm:0.3.46

Hooks version (if you are using Object Detection) app:6.1.21, pyzm:0.3.46

Are you using MLAPI? (Y/N) n

The version of ZoneMinder you are using: v1.34.23

What is the nature of your issue: I can't limit the uploaded pictures to platerecognizer to 1. I try to set 'max_attempts' : 1 in objectconfig.ini but alway 3 or 4 pictures are uploaded. Its a problem for me because I have only a very limited number of API calls.

pliablepixels commented 3 years ago

max_attempts is only a mechanism to try if downloading an image fails from ZM. It does not work for the intention you want - i.e. limit plate recognizer.

The only thing you can currently do is a pre_existing_label of vehicle types before you call alpr. You can also limit alpr to a specific monitor.

connectnet commented 3 years ago

I understand. My suggestion is to implement this "upload_max" as an enhancement in one of the next versions.