blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
17.67k stars 1.62k forks source link

[Config Support]: Frigate is not showing cars #4308

Closed rayzorben closed 1 year ago

rayzorben commented 1 year ago

Describe the problem you are having

Trying to get frigate to create events for cars. I am getting them for persons but not cars. As you can see, here is the driveway_area zone, but when I pull our vehicles in or out of it, no events are getting raised.

image

Version

0.11.1-2EADA21

Frigate config file

mqtt:
  host: homeassistant.local
  user: user
  password: password

ffmpeg:
  #hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/card0 -hwaccel_output_format yuv420p
  #hwaccel_args:
    #-hwaccel h264_rkmpp
    #-hwaccel_device /dev/dri/card0
    #-hwaccel_output_format yuv420p
  input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1

detect:
  width: 704
  height: 480
  fps: 5

snapshots:
  enabled: True

cameras:
  front_porch:
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.20:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp

  driveway:
    motion:
      mask:
        - 0,0,704,0,704,166,0,184
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.21:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp
    zones:
      front_street:
        coordinates: 0,250,704,239,704,170,0,181
        objects:
          - person
          - car
      driveway_area:
        coordinates: 704,480,0,480,0,226,704,233
        objects:
          - person
          - car
    snapshots:
      required_zones:
        - front_street
        - driveway_area

  south_side:
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.22:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp

  back_north:
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.23:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp

Relevant log output

No relevant

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

Setting objects for zones is just a list filter, you still need to add it to the list of objects to track:

objects:
  track:
    - car
    - person
rayzorben commented 1 year ago

Thanks!