Frigate Config
Configure Frigate object detection on the Traffic Monitor
Last updated
Was this helpful?
Configure Frigate object detection on the Traffic Monitor
Last updated
Was this helpful?
Object detection is powered by Frigate NVR, which provides powerful capabilities for tuning and reviewing events. The Traffic Monitor is not directly affiliated with the Frigate NVR project.
Refer to Frigate Configuration docs for full list of available configuration options and descriptions.
The recommended Traffic Monitor settings attempts to optimize the Frigate config for object detection on roadways. Each deployment presents unique scenarios and challenges with accurate and precise object detection.
View frigate-config.yml for the sample.
Many settings will need to be uniquely tailored to your specific deployment. See Deployment and Mounting Guide for optimizing your placement.
You can more easily determine how your object detection is working through Frigate's Debug interface by going to Frigate > Settings > Debug.
Fine-tuning object can help you with the following:
detection (are you missing bikes or pedestrians?)
reducing cross-classification (is an ebike being called a motorcycle?)
minimizing false positives (is a tree being detected as a person?), see also Defining Masks
The object detection model accuracy and detection ability may vary depending on a number of factors including mounting conditions such as height and angles to the roadway, camera quality and settings, and environmental conditions such as clouds, rain, snow, etc.
The generalized model available in the base version works well at a variety of angles, but is particularly suited for an oblique angle that has a good side-view of objects as they pass through the frame. Frigate object filters have a variety of score and threshold parameters that may be set to be more effective with your deployment.
The most relevant section of the Frigate config for fine-tuning object detection is the following.
In this sample, bicycle threshold is set very low to detect most types of bikes encountered on the roadway while motorcycle threshold is set high so even large ebikes don't get cross-classified as motorcycles:
Another tool for reducing false-positives, creating private areas, and refining your configuration. To access this capability, log into your Frigate interface and go to Frigate > Settings > Motion Masks.
Use masks sparingly. Over-masking will make it more difficult for objects to be tracked. See Frigate masks.
Motion Masks: may be designated to prevent unwanted types of motion from triggering detection.
Object filter masks: filter out false positives for a given object type based on location.
For detailed information visit Frigate > Masks.