Closed droans closed 2 years ago
So there's a few things to understand here:
The Home Assistant integration still captures these events and records them as motion.
but I think you are saying that the camera.whatever_person
still updates. This is expected as all detections will be sent over MQTT regardless of the event being added to the list or not. You can set mqtt -> required_zones
to not send snapshots over MQTT unless the object is in the specified zones.The settings change doesn't seem to be making a difference:
No masks exist anymore. MQTT settings for the camera have required_zones
set to be any of those boxed areas, but the motion is still outside of them.
The difference now is that, without the masks, they are getting recognized in the Frigate events and it says the motion came from the blue colored zone. I'm wondering if this is due to the re-bounding of the boxes. Motion is detected due to the leaves, but isn't recognized so it keeps resizing the bound box until it gets the car despite the car being outside of the motion boxes.
It's also not just the camera, but the binary sensors created for the detection. However, I assume they're correlated and always update together.
The settings change doesn't seem to be making a difference:
If the events are actually being registered then it would make sense that the MQTT snapshots are still sent.
The difference now is that, without the masks, they are getting recognized in the Frigate events and it says the motion came from the blue colored zone.
To be clear zones presence is ONLY true when the bottom center
of the objects bounding box is inside the zone. Motion box position won't affect zone presence at all.
I'm wondering if this is due to the re-bounding of the boxes. Motion is detected due to the leaves, but isn't recognized so it keeps resizing the bound box until it gets the car despite the car being outside of the motion boxes.
That's not how it works. For the car to be apart of that zone the bottom center of its bounding box needed to be inside the zone for at least 1 frame.
It's also not just the camera, but the binary sensors created for the detection. However, I assume they're correlated and always update together.
Yes that's correct they are directly related to each other.
Seeing as the blue zone is the front yard I don't think a car needs to be in the list of items for that zone which may help. Main thing to keep in mind here is that object presence is based on the bottom center of the objects bounding box which only needs to be inside the zone for 1 frame to be considered in the zone. Also, the snapshot won't necessarily be of this frame.
As far as the MQTT goes, I need to look into what it does exactly, but more clarification on what you're trying to accomplish / what's happening on the HA side will make it easier to make a recommendation
From watching it live, it appears the issue is the motion boxes.
When the wind blows, the shadows from the trees cause enough motion that Frigate generates a motion box covering a large portion of the feed. Eventually, it settles on something that was outside of the zone the whole time.
As an example, here's a mailbox that Frigate believed was the source earlier when the trees blew and triggered motion in my driveway. The mailbox was subsequently detected for about 18 minutes before it stopped.
Unfortunately, the shadow of the trees cover a large portion of my driveway and yard every morning and night. I can't just mask them out.
For now, I have increased the minimum area for vehicles and people to 2240 and 3000 respectively since that should be the bare minimum size in areas I care about.
Yes, lots of motion makes it more likely for an errant detection that can be a total false positive or a true positive but including more than just the object in the bounding box.
min_area is a good approach and should help a lot
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the problem you are having
I created some zones and masks for my cameras so Frigate will ignore them. While they appear to be working on the front end (no events are created), they don't actually seem to be doing anything. The "Events" option for each event type still shows events from discarded areas even though they do not appear in the event log. The Home Assistant integration still captures these events and records them as motion.
Some examples:
Camera:
With zones and object masks:
Person events:
Person Motion Camera from Home Assistant:
Version
0.10.1-83481AF
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Other Linux
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Amcrest
Any other information that may be helpful
No response