Cam adjustments to get better face detection support - Quality / framerate etc ? #20856
Replies: 4 comments 3 replies
|
For best face detection performance in Frigate, the detect stream should have a resolution high enough that faces are large and clear in the frame, and a frame rate fast enough to avoid motion blur or missing fast movements(1)(2). The recommended detect stream frame rate is 5 fps, but for fast-moving objects (like faces quickly passing by), you may benefit from 10 fps or higher(1). Your current setting of 1920x1080 at 15 fps for detection is within recommended parameters and should offer strong results, though higher frame rates do increase CPU/GPU load(1). 640x480 is likely too low for consistent face recognition unless people are very close to the camera, as Frigate's face recognition depends on the detect stream's ability to clearly capture facial details(2). Using the main stream for both record and detect (at 1080p or higher) is generally a good solution if your hardware can handle it(1)(3)(2). Additional camera settings for best results:
You do not necessarily need to buy a new camera if your current main stream can provide a high-resolution, high-quality detect stream and your hardware can process it(1)(2). If you want to offload processing and bandwidth, a camera with a higher resolution substream would give you more flexibility, but it is not strictly required if your current setup works and you are satisfied with performance(1)(2). 📚 Sources: Have another question? Just tag @inkeep. |
|
Well….. I learned something new. I have been setting the cams to match the drove FPS. I was sure I ready that a few years back when I started. |
|
I also have Dahua cameras that support a secondary stream with a maximum resolution of 704×576. with the configuration: it caused high CPU usage, even though I set it to sample only 5 fps. |
|
I do the following (Please note you need to enable exec in docker compose and this is used with Nvidia GPU) |
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem you are having
I have dahua cam as my front door cam. Its substream that I was using for detect only goes up to 640480. I do have control over CBR/VBR, Frame Rate, But Rate and I Frame Rate. I have seen only vide (and google AI) saying that the usual 5/6 FPS may nat be fast enough for face detection, and also that 640480 may not be a high enough resolution. I have modded my config to use detect and record from the same main stream instead and lowered the quiality a bit, and the frame rate.
Or should I get a new cam like my hikvision on the frnt that can have a better substream.
Version
0.16.2-4d58206
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
Frigate stats
n/AOperating system
UNRAID
Install method
Home Assistant Add-on
docker-compose file or Docker CLI command
n/aObject Detector
OpenVino
Screenshots of the Frigate UI's System metrics pages
No response
Any other information that may be helpful
No response
All reactions