-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Draw motion masks under boxes in Debug view #11592
Comments
objects that are detected and motion masks are not related, I don't think that this makes sense |
This is a little bit of a strange request, as motion masks are mostly irrelevant to bounding boxes. Motion masks are used to prevent unwanted motion in areas of your scene from triggering object detection, like moving trees or a camera timestamp. Over-masking will make it more difficult for Frigate to track objects. |
Even if they're not related, I often want to be able to see all the settings on a particular camera. Needing to turn one off overlay in order to see a different one just adds extra steps. My assumption (though perhaps incorrect) is that this would only be a matter of changing the order in which the elements are drawn. Though, admittedly, I don't know how it works. I should go find out. If it's as easy as I would think, I'll open a PR. If not, I'll close the issue. |
Yup, found it: https://github.com/blakeblackshear/frigate/blob/dev/frigate/object_processing.py#L625 Pretty sure I just need to move that if statement so that it draws first. I'll submit a PR when I'm at a computer I can use for that. :) |
This draws the motion mask before the other overlay elements (such as bounding boxes), so that they are still visible. Fixes blakeblackshear#11592
This draws the motion mask before the other overlay elements (such as bounding boxes), so that they are still visible. Fixes #11592
Describe what you are trying to accomplish and why in non technical terms
I am trying to use the debug tools to set up masks and zones in relation to bounding boxes. But this is sometimes difficult when a motion mask covers the boxes that I'm trying to see.
Describe the solution you'd like
I would like the motion mask to be drawn under the other overlayed content such as bounding boxes. This would make it easier to see the boxes, while still being able to see the mask.
Describe alternatives you've considered
An alternative might be to draw them as semi-transparent areas, so that things under them are still visible. But I imagine that would likely be more difficult.
Additional context
![image](https://private-user-images.githubusercontent.com/10095474/334511293-95e157b3-ece0-4897-8d3d-61240db2cb2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDgyMjUsIm5iZiI6MTcyMTM0NzkyNSwicGF0aCI6Ii8xMDA5NTQ3NC8zMzQ1MTEyOTMtOTVlMTU3YjMtZWNlMC00ODk3LThkM2QtNjEyNDBkYjJjYjJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDAwMTIwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxNzhmODk0ZTFlYjE3ODVjYjk5MTM4NDg4MTFkZTZlOTQwOWJmNTY1NGI5MjhjNGJhMGMxMWYzNzU2NWZmMTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jUhohkQDpMZfpvJyUQKr5M4Sa4VoSEjaa3WiotfSNyw)
For example, in this (cropped for privacy) screenshot, the motion mask obscures the bounding box:
(That's not a great example, since I can clearly see what the object is, and where the middle center point is, but it's the best example I have without sharing pets or people.)
The text was updated successfully, but these errors were encountered: