Local realtime person detection for RTSP cameras

It’s already in the works.

It is the cache directory for when you have save_clips enabled. It should be creating 10 second mp4 files and cleaning them up automatically. Take a look in that directory and see if one of the cameras cache files grows indefinitely instead of splitting at 10 second intervals. Then turn on logging for that camera and restart to see what the logs say.

Yeah, but at the time I didn’t think anyone would need it, but sure I will add it on github

Hey guys, my apologies if this is mentioned already: I couldn’t find anything in the docs about creating multiple motion masks one one stream. Is this possible?

Next version: https://github.com/blakeblackshear/frigate/issues/226

1 Like

Great! I cheated for now and made a tiny connector from one mask to the next.

I looked in open/closed issues and roadmap and didnt see anything. Shall I open one?

One thought about the custom component, depending how you build it. I’ve noticed with the media_browser feature for things like media players. If the browser is going to retrieve objects from another sytem than HA, there are browser security features to deal with. ie. I access my ha internally through a reverse proxy via https so browser security features such as CORS and common method (https) are enforced. This means I can’t use media browsing on certain devices until I enable https on them.

I thought one existed, but I don’t see it. Go ahead and open one for post_capture.

i get a bunch of these:

[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142507.mp4' for writing2 drop=6691 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142516.mp4' for writing2 drop=6691 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142527.mp4' for writing4 drop=6692 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142540.mp4' for writing9 drop=6701 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142547.mp4' for writing4 drop=6723 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142556.mp4' for writing5 drop=6744 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142607.mp4' for writing8 drop=6746 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142617.mp4' for writing9 drop=6748 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142626.mp4' for writing2 drop=6751 speed=   1x    
[segment @ 0x5555a8e4e9c0] Opening '/cache/trees-20201108142636.mp4' for writing2 drop=6751 speed=   1x   

still crashing, ay ideas?

That looks normal. Can you list the contents of your /cache folder?

backyard-20201108151621.mp4  backyard-20201108151757.mp4   frontyard-20201108151748.mp4  openspace-20201108151735.mp4  patio-20201108151723.mp4  trees-20201108151724.mp4
backyard-20201108151637.mp4  frontyard-20201108151624.mp4  frontyard-20201108151758.mp4  openspace-20201108151745.mp4  patio-20201108151734.mp4  trees-20201108151735.mp4
backyard-20201108151644.mp4  frontyard-20201108151636.mp4  openspace-20201108151624.mp4  openspace-20201108151757.mp4  patio-20201108151743.mp4  trees-20201108151745.mp4
backyard-20201108151655.mp4  frontyard-20201108151647.mp4  openspace-20201108151637.mp4  patio-20201108151622.mp4      trees-20201108151625.mp4  trees-20201108151756.mp4
backyard-20201108151703.mp4  frontyard-20201108151657.mp4  openspace-20201108151645.mp4  patio-20201108151638.mp4      trees-20201108151638.mp4
backyard-20201108151714.mp4  frontyard-20201108151707.mp4  openspace-20201108151655.mp4  patio-20201108151643.mp4      trees-20201108151644.mp4
backyard-20201108151725.mp4  frontyard-20201108151717.mp4  openspace-20201108151705.mp4  patio-20201108151653.mp4      trees-20201108151654.mp4
backyard-20201108151737.mp4  frontyard-20201108151731.mp4  openspace-20201108151715.mp4  patio-20201108151703.mp4      trees-20201108151704.mp4
backyard-20201108151745.mp4  frontyard-20201108151737.mp4  openspace-20201108151725.mp4  patio-20201108151713.mp4      trees-20201108151714.mp4

Is that 1gb of files? You may actually be hitting the 1gb limit for your tmpfs volume if you have high resolution cameras. You could try setting max_seconds to 60 under save_clips to reduce the cache size if you want to keep the cache in tmpfs, or just use an actual disk with enough storage.

i changed the config and i am using a hard disk for cache

Thanks, managed to get it running with one camera, will add some more today :slight_smile:

Hello, I notice that person detection is almost immediate while camera in color mode, and takes a couple of seconds while in B&W with IR. Is that expected? Are others seeing this too?
I am now using person detection to trigger lamps, and would like to tweak for greater speeds.

thanks

Yeah, when my cameras go to night mode (black and white / infra-red) the detection stops working reliably.

1 Like

I have now added 3 cameras and in an LCX Proxmox container. 3% CPU use on and 7.7ms interference speed. I am so impressed with this program. Really low in resource usage.

Will have to start configure it some more.

Was it possible to track how fast cars drives in the street?

Yep, 3 seconds or so if I am in clear view with IR mode on. If I am walking around cars… many times I am not detected. I added an extra camera from a different angle. So that helps. At least one camera will usually “catch” me.

I managed to install the Home Assistant add-on this weekend am amazed how well it works with almost no impact to the host machine CPU. I have an older i3 NUC dedicated to HA with the coral TPU.

Would someone provide guidance on how to configure the IPs in Blake’s HA automations so photos attachments can be sent along with the telegram notifications? I tried my HA’s IP and even tried localhost.

I “thought” normally one docker can’t talk to another (on the same host) unless you pre-define IPs and ports.

Thank you in advance.


    action:
      - service: notify.user_telegram
        data:
          message: "A person was detected."
          data:
            photo:
              - url: http://<ip>:5000/<camera_name>/person/best.jpg
                caption: A person was detected.  

This might work. When looking at your addon config, note the addon name in the url:

http://localhost:8123/hassio/addon/ccab4aaf_frigate/info

In the above url, ccab4aaf_frigate is a part of the name of the backend docker container. I think you can use addon_ccab4aaf_frigate in place of <ip> in your config example.