Hi,
I want execute a script file when the event match with a object detection, for example: person >= 60%
I don't know how achieve this, because ZM filter don't have an option to create a filter based on objects detections (person, car, bike, etc)
I'm reading on event server documentation, have "event_start_hook_notify_userscript" , "event_end_hook_notify_userscript" and "event_end_hook" but I don't know how to use, I can't understand the examples and not found nothing more on web.
Could someone help me please.
Thanks.
How can I create a filter based on object detection (person, car, bike, etc)
Re: How can I create a filter based on object detection (person, car, bike, etc)
I wouldn't, I use Pushover for that.
If you want a filter, use the Notes field. That can look for the term 'Person'. Set the thresholds in ZMES.
If you want a filter, use the Notes field. That can look for the term 'Person'. Set the thresholds in ZMES.
-
Re: How can I create a filter based on object detection (person, car, bike, etc)
add a rule for Notes contains....
Re: How can I create a filter based on object detection (person, car, bike, etc)
Notes was my first try, I could search for the text "Persons" inside Notes, but doesn't have or I can't found a way to create a condition which trigger the filter in background only if Person >=60%
How can I read "percent" and create a condition ?
Re: How can I create a filter based on object detection (person, car, bike, etc)
You need to limit your confidence in ZMES the objectconfig i think. 'object_min_confidence' if you set to 60 it will only label the notes if its above 60% confident. Then your filter based on notes with person will trigger any time there is a person detected.
Re: How can I create a filter based on object detection (person, car, bike, etc)
Agreed and 60% might not be enough, IME.
-
Re: How can I create a filter based on object detection (person, car, bike, etc)
Thank you, is a good idea, I will try.shane_pcs wrote: ↑Thu Jan 27, 2022 3:25 pm You need to limit your confidence in ZMES the objectconfig i think. 'object_min_confidence' if you set to 60 it will only label the notes if its above 60% confident. Then your filter based on notes with person will trigger any time there is a person detected.
It is a pity that the percent value is not stored in a numeric field in the database, because there is no way to create custom SQL queries and then manually insert it into the database filter table.
Re: How can I create a filter based on object detection (person, car, bike, etc)
It's to be expected as they are two separate projects. They could be more tightly integrated I suppose. Putting some money up would help.
-