Hi everyone,
So I’ve got frigate working and it occasionally detects objects. I’m using a coral via USB. I had this working at my last house with a Dell server and a coral pcie card. Since I moved last year I haven’t put my servers back online so that is why I’m using Frigate with the HA Add-On. My host is a HP Nuc with 4 x AMD GX-415GA SOC with Radeon™ HD Graphics (1 Socket) as its processor and it I gave the NUC 12GB of ram most of which is allocated to HA since I’m running under proxmox.
Here is some of my config but it pretty much repeats itself for all 6 cameras
birdseye:
enabled: True
mode: continuous
detectors:
coral:
type: edgetpu
device: usb
database:
path: /config/frigate.db
detect:
# Optional: desired fps for your camera for the input with the detect role (default: shown below)
# NOTE: Recommended value of 5. Ideally, try and reduce your FPS on the camera.
fps: 10
# Optional: enables detection for the camera (default: True)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
max_disappeared: 50
# Optional: Configuration for stationary object tracking
stationary:
# Optional: Frequency for confirming stationary objects (default: shown below)
# When set to 0, object detection will not confirm stationary objects until movement is detected.
# If set to 10, object detection will run to confirm the object still exists on every 10th frame.
interval: 10
# Optional: Number of frames without a position change for an object to be considered stationary (default: 10x the frame rate or 10s)
threshold: 50
# Optional: Define a maximum number of frames for tracking a stationary object (default: not set, track forever)
# This can help with false positives for objects that should only be stationary for a limited amount of time.
# It can also be used to disable stationary object tracking. For example, you may want to set a value for person, but leave
# car at the default.
# WARNING: Setting these values overrides default behavior and disables stationary object tracking.
# There are very few situations where you would want it disabled. It is NOT recommended to
# copy these values from the example config into your config unless you know they are needed.
max_frames:
# Optional: Default for all object types (default: not set, track forever)
default: 3000
# Optional: Object specific values
objects:
person: 1000
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
# NOTE: Can be overridden at the camera level
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: save a clean PNG copy of the snapshot image (default: shown below)
clean_copy: True
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: False
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: False
# Optional: crop the snapshot (default: shown below)
crop: False
# Optional: height to resize the snapshot to (default: original size)
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
#Global Object Settings
objects:
track:
- person
- cat
- dog
- car
cameras:
Front_Gate:
birdseye:
mode: objects
ffmpeg:
hwaccel_args:
- -hwaccel_output_format
- yuv420p
input_args:
- -avoid_negative_ts
- make_zero
inputs:
- path: http://192.168.x.x/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=oper&password=password
roles:
- detect
- path: http://192.168.x.x/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=oper&password=password
roles:
- rtmp
zones:
Front_Gate_Driveway:
coordinates: 201,0,0,480,640,480,640,145,339,0
objects:
- person
- car
- dog
- cat
- horse
rtmp:
enabled: True # <-- RTMP should be disabled if your stream is not H264
detect:
width: 640
height: 480
This camera sits down at my gate and it looks like this
But it rarely ever detects that there is an object down there. I am using Reolink 520 cameras and I have the ext stream set to 10FPS
The Add-On consistently reports that its using 60+% of the CPU for it, so I’ve been trying to tweak what I can to reduce that. I have the height/width in the config set to match what the camera is pushing out so that way Frigate isn’t having to scale the image.
Here is an example from yesterday where there was clearly a vehicle down there but nothing was ever detected
I’m not sure what I’m doing wrong with this. I have other cameras as well that occasionally detect a dog or a person walking by them but its rare.
Sometimes I feel like it works really good after I restart the add-on but then it feels like it gives up after a bit.
Thank you all for your help with getting this drilled down