Frigate Config
Configure Frigate object detection on the Traffic Monitor
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.
Recommended Traffic Monitor Settings
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 our default frigate config.yml for a sample configuration.
Many settings will need to be uniquely tailored to your specific deployment.
See Deployment and Mounting Guide for optimizing your placement.
Optimizing Object Detection
Go to Frigate > Settings > Debug to more easily determine how your object detection is working.

Fine-tuning 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.
Sample Object Detection Fine-Tuning
The most relevant section of the Frigate config for fine-tuning object detection is the following.
In this sample, bicycle min_score and threshold are set low to detect most types of bikes encountered on the roadway while motorcycle threshold is set high so even large ebikes don't get misclassified as motorcycles:
Defining Masks
Optional step 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. Motion masks should not be used to mark out areas where you do not want objects to be detected or to reduce false positives.
If you are getting many false positives, e.g. a tree that gets detected as a person, we recommend first modifying object filters such as threshold and min_score.
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.
Improved Models
Check out the premium Frigate+ for fine-tuned models that may increase accuracy and efficiency.
Last updated
Was this helpful?

