Frigate question on how set up detection

I have HA set up and running on my Intel NUC in a Proxmox VM. I also have Frigate installed and running with my one Amcrest POE camera showing on a Lovelace card on my HA dashboard. My question is how do I get Frigate to recognize objects in my driveway? Is that some coding I need to add to frigate.yml file in config.yml? I’ve been following this tutorial, mostly, but seem to be lost when it comes to setting up the actual detection of movement.

Eventually I want to move Frigate to a Proxmox container along with a Google Coral but I first need to make sure all is working in a basic setup right?

This tutorial tells you to use an old version of frigate, I’d suggest following the frigate docs Creating a config file | Frigate

Add something like this to your Frigate yaml.

objects:
  track:
    - person
    - car
    - bird
    - airplane
    - bicycle
    - motorcycle
    - bus
    - cat
    - dog
    - cell phone

Have a read here…

https://docs.frigate.video/configuration/objects

As simple as that? I guess I’ll see what happens tomorrow. It’s getting late here.

Many thanks!

Objects are tracked by default. No need to add each unless you globally disabled them.

You will need to enable “detect” stream for each camera. The example config shows global config but generally i setup under

cameras:
  Mycamera:
    Inputs:
      - path: http://camera_lowres_rtspurl
        roles:
          - detect
      - path: http://camera_HD_rtspurl
        roles:
          - record

Camera defined like above should enable object detection on low res stream of camera. Low Res is recommended since portion of video with object is reduced to 300x300 and HD only eats for cpu for this but doesn’t improve detection. This depends on object size in video but mostly low res works just as good

I think new beta frigate config is a little diffent

My config looks like this:

mqtt:
  host: 192.xxx.x.xxx
  user: xxx
  password: xxxxxxxxx

cameras:
  driveway_cam:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
          roles: 
    detect:
      width: 1280
      height: 720
      fps: 10
    
detectors: 
  cpu1:
    type: cpu
  
objects:
  track:
    - person
    - car
    - bird
    - airplane
    - bicycle
    - motorcycle
    - bus
    - cat
    - dog
    - cell phone

So I need to insert the “detect” in there? Many thanks for the help!

Yes

cameras:
  driveway_cam:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
          roles: 
            - detect
    detect:
      width: 1280
      height: 720
      fps: 10
1 Like

Thanks again.

I believe you can remove the objects section. Frigate should track all by default unless you exclude them globally or per camera.

Also, detectors section should be moved to after mqtt and before cameras. Not sure if it matters now but could get confusing or be problem later

OK thanks. I commented out objects and moved detectors to after mqtt.

I still can’t see any recordings though. Live camera is good but nothing is being tracked so far.

Sorry. I forgot you must add more to get the recording. Detections show as events. There may be additional config for the snapshots but it explained at link provided belowi believe

Look here and config change like below

cameras:
  driveway_cam:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
          roles: 
            - detect
            - record
    detect:
      width: 1280
      height: 720
      fps: 10
    record:
      enabled: True
      events:
        retain:
          default: 10
1 Like

You’ve been a great help. I’ve made those changes and will review the docs. We don’t get a lot of traffic so I’ll give it some time or go dance in front of the camera.

Thanks a lot!