Resolution #1189
-
So if models are in a 300 x 300px images, why does having a higher resolution offer no performance increase? Let's say I have a 4k camera, there should be a huge canvas for analytics to find objects. If Frigate reduces the area to 300x300 doesn't that make the detect range of Frigate extremely limited? Love the project. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
A higher resolution model would in theory offer better performance, but likely wont fit on the Coral or be performant enough for realtime analysis. These aren't frigate-specific models. They are provided by Google, and they are 300x300 or 320x320.
This is why frigate doesn't pass the entire frame to object detection. It looks for motion and then creates a bounding box around a subset of the frame and sends that for object detection. That bounding box area is always resized to the model size (320x320). When running detection on a 4k stream, the bounding box for motion when a person is near will likely be much larger than 320x320. Resize operations are always a balance of speed and data loss, and frigate prioritizes speed, so the more you shrink the image, the worse the image quality. Of course if you are using a 4k stream to detect very small, far away objects, this won't be a problem. |
Beta Was this translation helpful? Give feedback.
A higher resolution model would in theory offer better performance, but likely wont fit on the Coral or be performant enough for realtime analysis. These aren't frigate-specific models. They are provided by Google, and they are 300x300 or 320x320.
This is why frigate doesn't pass the entire frame to object detection. It looks for motion and then creates a bounding box around a subset of the frame and sends that for object detection. That bounding box area is always resized to the model size (320x320). When running detection on a 4k stream, the bounding box for motion when a person is near will like…