ZoneMinder / zmeventnotification

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

Object detected in excluded zone #361

Closed sebw closed 3 years ago

sebw commented 3 years ago

Event Server version

6.1.5

Hooks version (if you are using Object Detection)

hooks:6.1.5 pyzm:0.3.25

The version of ZoneMinder you are using:

v1.34.23.

What is the nature of your issue

The object detection on my driveway camera was giving a few false positives because of small tree bushes. Nothing too bothering.

I still tried to exclude from the detection zone the bushes area with:

[monitor-5]
frame_id=25
driveway=0,0 681,0 673,70 595,80 1214,393 1267,338 1015,188 748,67 753,3 1279,0 1279,719 0,719
detection_sequence=object,alpr,face
driveway_zone_detection_pattern=(person|car|bicycle|motorbike)

I keep getting false positives, in the area that I (assume to) have excluded:

image

Did I mess up the configuration?

Thanks!

pliablepixels commented 3 years ago

I’ll need to see debug logs of detect for the full run.

pliablepixels commented 3 years ago

Oh and you aren’t excluding. You are including. Those polygons are meant to be inclusive - that is if an object intersects it gets included. If they intersect they will be reported. In your picture your object intersects the polygon. So to do what you want you’ll have to draw a polygon that excludes the rectangle surrounding the bush. Make sure to leave extra space as depending on lighting conditions box size can change.

Edit again: hmm I looked at your polygon definition - you have created a polygon to exclude your bush but as you see the box around the bush intersects the polygon. In other words your polygon is too tight around the bush.

sebw commented 3 years ago

Ah gotcha! I will make the excluded area larger. Thanks a lot!