Local realtime person detection for RTSP cameras

It’s not stuck. You likely have stationary objects that are being tracked and you should see them in the debug view for the camera. Stationary objects will publish an update message once per minute or when position changes occur. This allows you to build automations for lingering objects based on how long they have been stationary.

Deleting in progress events doesn’t stop them. They will end up getting reinserted into the database when complete.

The second person will have a different ID.

The type parameter is documented on the mqtt page for the events topic.

You can disable stationary object tracking in the config by setting a max frames value for object types. However, it helps frigate not accidentally assume a person in the background is the same person in the foreground when tracking to know what is already in view.

All of this was covered in the release notes.

2 Likes

Are there any instructions on how to get frigate working with an nvidia gpu in home assistant?
I have this working in Unraid but can’t for the life of me, figure out how to do this in HA. Any guidance would be appreciated. Thanks

Can the time before and after an event was detected be configured?

for example, if a person is detected, I’d like to be able to specify to save X minutes before and after.

events:
    # Optional: Maximum length of time to retain video during long events. (default: shown below)
    # NOTE: If an object is being tracked for longer than this amount of time, the retained recordings
    #       will be the last x seconds of the event unless retain->days under record is > 0.
    max_seconds: 300
    # Optional: Number of seconds before the event to include (default: shown below)
    pre_capture: 5
    # Optional: Number of seconds after the event to include (default: shown below)
    post_capture: 5
    # Optional: Objects to save recordings for. (default: all tracked objects)
    objects:
1 Like

thanks. I couldn’t’ remember where to find it

is there an easy way to use an external USB drive for recordings/clips? I googled and it seems possible to mount an external drive as the Media folder, but the process seemed quite technical & I didn’t 100% understand it!

is there anybody willing to point me in the proper direction in order to avoid these errors? Normally this happens when Frigate detects the motion of the leaves because of the wind and then wrongly detects a person. Evidently I cannot mask that area out as it is the entrance path, nor can I tamper with the sizes as that’s exactly the size of a possible person, so what else? Moreover I would like to have a simple explanation of the use of the two parameters min_score and threshold as I don’t really understand them on the Frigate webpage. Any way, since I understand that they must be involved with the reliability of the detection, for this specific case (min_score: 0.45 and threshold: 0.7) the “reliability score” is quite high (71%) hence this doesn’t seem the way to go either. I will appreciate any possible help, thanksphoto_2022-04-13_16-15-31

I was in the same situation i put threshold 0.77, now its fine. Try it and go out if it detects you day/night

well thanks for your fast reply, I’ll try but just to help me frame it a little bit better, what did you have as min_score while having my same problem and what do you have now?

Any ideas for h265 encode to frigate i bought Reolink 4k camera and cannot connect to frigate i tried so much things i connect only sub stream because sub stream is in h264 any ideas

All 12cameras on each hass instances, i have 2 HAOS
min_score: 0.5
threshold: 0.77

i have it done on docker, just add a volume (aka your usb mount) and go into the container and change the storage location to your drive.

This is only if u are using frigate from a docker container and not from the addon in hass

1 Like

Thank you :slight_smile:

1 Like

From what i know h265 is not supported, idk when it will be

Is there a way to use the Doorbird camera with frigate?

Yes

just use send video to frigate

page 11 may help if you dont know the ip for live video

I know the IP for the live video, but which frigate camera config is needed? (ffmeg, inputs…)

What’s wrong with this config?

2022-04-16 22:16:35] ffmpeg.doorbird.detect         ERROR   : [http @ 0x55aa63f340] HTTP error 401 Unauthorized
[2022-04-16 22:16:35] ffmpeg.doorbird.detect         ERROR   : http://192.168.100.100/bha-api/video.cgi?http-user=username&http-password=password: Server returned 401 Unauthorized (authorization failed)
[2022-04-16 22:16:36] frigate.video                  ERROR   : doorbird: Unable to read frames from ffmpeg process.
[2022-04-16 22:16:36] frigate.video                  ERROR   : doorbird: ffmpeg process is not running. exiting capture
doorbird:
    ffmpeg:
      inputs:
        - path: http://192.168.100.100/bha-api/video.cgi?http-user=username&http-password=password
          roles: 
          - detect
      input_args:
              - -avoid_negative_ts
              - make_zero
              - -fflags
              - nobuffer
              - -flags
              - low_delay
              - -strict
              - experimental
              - -fflags
              - +genpts+discardcorrupt
              - -r
              - "5" # <---- adjust depending on your desired frame rate from the mjpeg image
              - -use_wallclock_as_timestamps
              - "1"
      output_args:
        detect: -f rawvideo -pix_fmt yuv420p

401 error…is it correct link and most likely is user/pass authorized to view

Did you check link in VLC or some other method?

via Browser this URL works fine:

http://192.168.100.100/bha-api/video.cgi?http-user=myuser&http-password=mypass

but not in the VLC (network stream)

It seems it’s a Doorbird problem?