Hi,
I’m hoping I might be able to get a bit of help? New to Frigate, and haven’t yet even contemplate HA, though the intention is to one day have both nicely integrated.
I’ve spent a long time reading documentation but still struggling with more than the most basic config.yml.
The present situation:
I have Frigate 0.15 running in a Docker container. I have one camera (front) configured. It is recording any person or car as an alert (pretty much the default config). I’m only interested in these object types and don’t want to record random motion. This much seems to work well.
I’m trying to take it to the next level but get problems.
My desired outcome:
I have defined 2 zones. “Driveway” and “Road”.
In the Driveway Zone: I want to record all moving people/cars, ignore shadows/trees, and do not want to record stationary objects.
In the Road Zone: I want to record all people, but only record cars if they remain for 7+ seconds. I want to stop recording cars once they are stationary/go beyond the 7 second loiter time. The idea is to avoid recording cars passing by normally, but have some record of cars loitering.
For both zones I want to keep qualifying recordings for 35 days.
What’s Actually happening:
All cars passing by (Road zone) are being recorded as alerts in my “Review items” as well as appearing in Explore as “tracked objects”. However, the loitering for 7 seconds requirement appears to be ignored. When exploring object lifecycle there is no zone associated with the alert. People are being recorded (correct) but similarly not associated with the Road zone.
I haven’t yet had a car enter the Driveway zone to test. However, a person is correctly recorded and appearing as a “Review item” in the Driveway zone.
I’m in well over my head with this but hope if someone can correct what I’ve got wrong it’ll start to make more sense.
Grateful to anyone who can help.
mqtt:
enabled: false # Disable MQTT if not using it
detectors:
coral:
type: edgetpu
device: usb
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
cameras:
front:
ffmpeg:
inputs:
- path: rtsp://frigate:[email protected]:554/Streaming/Channels/102
roles:
- detect
- path: rtsp://frigate:[email protected]:554/Streaming/Channels/101
roles:
- record
detect:
width: 640
height: 480
fps: 5
objects:
track:
- person
- car
record:
enabled: true
retain:
days: 35 # Keep recordings for 35 days
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 35 # Keep snapshots for 35 days
motion:
mask:
- 0.268,0.047,0.268,0.082,0.334,0.082,0.334,0.039
- 0.429,1,0.137,0.618,0.004,0.727,0.001,0.993
- -0.001,0.354,0.08,0.251,0.136,0.237,0.144,0.038,0.132,0,-0.001,0.001
- 1,0.182,0.665,0.074,0.394,0.066,0.157,0.086,0.147,0.005,0.996,0.001
- 0.819,0.993,1,0.357,0.999,0.994
- 0.242,0.188,0.233,0.215,0.35,0.238,0.426,0.242,0.429,0.205,0.328,0.184
threshold: 35
contour_area: 20
improve_contrast: true
zones:
Driveway:
coordinates:
0.313,0.988,0.916,1,0.956,0.428,0.885,0.374,0.686,0.32,0.695,0.294,0.457,0.221,0.44,0.193,0.416,0.154,0.235,0.137,0.112,0.149,0.002,0.28,0.003,0.761
filters:
person:
min_area: 5000 # Adjust as needed to filter out false positives
car:
min_area: 8000 # Adjust as needed
Road:
coordinates:
0.974,0.355,1,0.107,0.657,0.009,0.521,0,0.15,0,0.147,0.111,0.429,0.155,0.452,0.214,0.688,0.282,0.766,0.318
filters:
person:
min_area: 5000 # Adjust as needed
car:
min_area: 8000 # Adjust as needed
loitering_time: 7 # Record cars only if they linger for 7 seconds or more
inertia: 3
version: 0.15-1