Frigate Mobile App Notifications 2.0

The number of pixels, useful for setting a minimum size of objects in frigate.

Thanks! How do I set the minimum pixels? I wanted to detect birds in back yard as they feed on our vegetables but frigate never does, perhaps they are too small and my camera is higher up. Once it detected my barbecue as a bird as the cover was flapping in the wind lol :joy:

Yeah iā€™ve seen some odd ones occasionally.

from Configuration File | Frigate

objects:
  filters:
    bird:
      # Optional: minimum width*height of the bounding box for the detected object (default: 0)
      min_area: 5000
      # Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
      max_area: 100000
      # Optional: minimum width/height of the bounding box for the detected object (default: 0)
      min_ratio: 0.5
      # Optional: maximum width/height of the bounding box for the detected object (default: 24000000)
      max_ratio: 2.0
      # Optional: minimum score for the object to initiate tracking (default: shown below)
      min_score: 0.5
      # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below)
      threshold: 0.7
      # Optional: mask to prevent this object type from being detected in certain areas (default: no mask)
      # Checks based on the bottom center of the bounding box of the object
      mask: 0,0,1000,0,1000,200,0,200
1 Like

Thanks. Will check it out. So to detect smaller objects we need to set the area smaller I guess?

the default minimum is 0, so no, but you can prevent it detecting your bbq again with a max area.

to detect smaller objects you need better resolution (so they arenā€™t as small)

Try this version. HA_blueprints/Frigate Camera Notifications/Beta at efbe4472fb59f31fa058271eee23728d6c5a2602 Ā· SgtBatten/HA_blueprints Ā· GitHub

You will need to enter the following in the critical input field

{{ event['after']['top_score'] |float(0) > 0.85 }}

which will look like this in yaml view
critical: "{{ event['after']['top_score'] |float(0) > 0.85 }}"

2 Likes

Is it possible to get a clip/gif view in the notification instead of thumbnail/snapshot? similar to nest?

I could add video attachment as an option. iOS or Android?

My concern is the clip isnā€™t ready when the notification is sent.

iOS, clip not being ready is probably going to be a issue.

Have you tried the iOS love view option yet?

I have this option enabled on the blueprint just for IOS devices but when I tried last week It did not show the live view on my Dads iPhone. Weird. GIF would be awesome thoughā€¦

Iā€™m just considering disabling the iOS Live View option because when I get notification the screenshot is so small I canā€™t see there anything on iPhone so I hold the notification and love view loads which is nice for fresh notifications but sometimes I miss the notifications and I would like to see bigger snapshot what was happening so I hold the notification but I see live view.

And on Apple Watch I donā€™t get the screenshot at all, I get the live stream which takes a long time to load on my Watch gen 3 (old but working).

So Iā€™ll switch back to original behaviour which was screenshot.

What I could offer is more customisations of the attachment so people can put in their own gif link. Frigate doesnā€™t build anything on its own so it would have to come from the user and then be linked to the notification. Easy enough on the face of it.

1 Like

What do you mean by user can put their own GIF?

Have you tried using the ā€œvideo:ā€ tag instead? Apparently, that is a way to get GIF in a notification because it should convert the video to a GIF.

Iā€™m all for more customization though even though thereā€™s already a ton!

Yes this is what i would do, but frigate does not create any gifs, so that is up to the individual.

1 Like

So has the ā€œvideoā€ tag worked in your testing btw? I heard it takes a few seconds for it to be created so its not an instant GIF, which is why the guy who told me about it decided to not use it in his own blueprint.

Thanks! Will try it out! Would it also be possible to filter all notifications on a % value? So the detection need to be above 80% to even send out a notification in the first place?

would you do this within frigate? i.e not make it an event until 80%, or you want a setting in the blueprint?

I think the state filter could be used for this in the same way, iā€™d just need to move some lines of code.

I would love option in the blueprint, cause I still want the event in frigate so I donā€™t miss any event by accident but only want notification on high percentage ones :slight_smile:

Hey,

Unfortunately, the setting that is already in the blueprint does not work for Android.

With the Unifi blueprint that I linked, an image is first sent and after a few seconds the image is replaced by an animated GIF. While this doesnā€™t always work either, your blueprint will only come out with an image on Android, not a GIF or Video in the Message.

thanks