[FR] Ability to override Frigate `latest.jpg` and `snapshot.jpg`
See original GitHub issueContinuing 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:
- Created 2 years ago
- Comments:20 (9 by maintainers)
Top GitHub Comments
Thanks for the fast turnaround! I’ll install it and test it today.
So far it works ! Im going to let it run this morning and test a bit more ! Thanks