question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FR] Ability to override Frigate `latest.jpg` and `snapshot.jpg`

See original GitHub issue

Continuing the discussion from #102 @hawkeye217 is looking for a way to override the latest.jpg and snapshot.jpg images rather than using the default ones from Frigate’s API.

Here is my proposed solution.

frigate:
  url: https://frigate.com:5000
  
  # defaults applied to all cameras and events
  attempts:
    # number of times double take will request a frigate latest.jpg for facial recognition
    latest: 10
    # number of times double take will request a frigate snapshot.jpg for facial recognition
    snapshot: 0
    # process frigate images from frigate/+/person/snapshot topics
    mqtt: true
    # add a delay expressed in seconds between each detection loop
    delay: 0

  image:
    # height of frigate image passed for facial recognition
    height: 500

  # override global frigate attempts and images per camera
  events:
    office:
      attempts:
        latest: 0
        snapshot: 5
        mqtt: false
        delay: 0

      image:
        height: 600
        snapshot: http://snapshot-url.com/image.jpg
        latest: http://latest-url.com/image.jpg

With this configuration the office camera has new values applied to it. I’ve disabled the latest processing by setting the attempts.latest to 0. The MQTT snapshot is also disabled by setting attempts.mqtt to false. You can also override the snapshot.jpg or latest.jpg image instead of using the ones provided from Frigate’s API.

You can also change the image.height per camera, but this will only apply to the standard latest.jpg and snapshot.jpg images from Frigate. In the above example because I have a custom value for latest and snapshot, then the height will be omitted.


@hawkeye217 I have all of these changes above ready locally. Just want to make sure the above makes sense before I release a new beta build with this. Let me know what you think!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkeye217commented, Sep 23, 2021

Thanks for the fast turnaround! I’ll install it and test it today.

1reaction
Sylvain-Lainecommented, Sep 23, 2021

So far it works ! Im going to let it run this morning and test a bit more ! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snapshots - Frigate Docs
Frigate can save a snapshot image to /media/frigate/clips for each event named as -.jpg.
Read more >
Facial recognition & room presence using Double Take ...
I have my config like this and I'm not getting double results, looks like you are using both the snapshot and latest images....
Read more >
jakowenko/double-take - Docker Image
When the frigate/events topic is updated the API begins to process the snapshot.jpg and latest.jpg images from Frigate's API. These images are passed...
Read more >
blakeblackshear/frigate - [REPO]@Telematika
Frigate - NVR With Realtime Object Detection for IP Cameras ... with the same resolution as the camera feed ( /<camera_name>/latest.jpg ).
Read more >
AD410 Snapshot Quality Low - Amcrest Forum
"The Video Quality is amazing." Not for me. I use Home Assistant and Frigate with Google Coral. Anyway my quality is very poor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found