Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objects smaller than zone-specific min_area still create events #1738

Closed
fl42 opened this issue Sep 8, 2021 · 2 comments
Closed

Objects smaller than zone-specific min_area still create events #1738

fl42 opened this issue Sep 8, 2021 · 2 comments

Comments

@fl42
Copy link

fl42 commented Sep 8, 2021

Hello,

Describe the bug

I added min_area for person in zone1.

zones:
  zone1:
    coordinates: 0,1080,1920,1080,1920,...
    filters:
      person:
        min_area: 50000

However I still have person (actually it's a dog labelled as person...) smaller than 50k in events.
Note that these events don't have any zone (particularly they don't have zone1).
I would expect to not have any event (the detection should be considered as false positive) if the object is smaller than the specific min_area for this zone.

I don't know if it's a bug or a feature.
Actually my idea is to filter out false positives (too small persons) but only for zone1 (as in other parts of the camera persons could be smaller than 50k).

Is it expected? How to prevent events from being created?

Version of frigate
0.9.0-4b730a9

Thanks

@blakeblackshear
Copy link
Owner

This is expected. These are zone filters, which restrict when the zone is triggered. If you want to prevent events, you would need to configure this as a required zone for snapshots and events under record. You will need to configure zones for the other areas where people will be smaller than 50k as well and include both zones in the required_zones.

@fl42
Copy link
Author

fl42 commented Sep 8, 2021

Sounds good!
Thanks for the quick answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants