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.

Preserve output from 'best.jpg' API after Frigate restart (to get rid of black boxes for all tracked objects)

See original GitHub issue

It does not look like output of best.jpg API endpoint (like /api/camera_1/car/best.jpg?crop=1&h=150) is preserved after Frigate restart. Despite there being pleny of events / snapshots in storage, after restart each ‘best’ image reverts to a black square.

This results with ‘Tracked Objects’ defaulting to black as well:

image (it might take hours or more for all these to repopulate - depending on the activity in the video)

It seems like this is because best_objects in CameraState is just in-memory dictionary:

https://github.com/blakeblackshear/frigate/blob/master/frigate/object_processing.py#L328

Some sort of persistence for this (in db?) could be very useful - the UI looks borken with all these black boxes, which is quite alarming and potentially confusing the users, which might think something is not working as it should (I know I got confused!)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dermotduffycommented, Feb 13, 2022

FWIW: I would like to be able to give the Frigate card the option of showing the latest ‘best’ match (across any object type, or a specified object type) in the card image view. It is possible the described replacement could fit that bill.

0reactions
KillahB33commented, Oct 7, 2022

Ah ok, so once that replacement goes in than I can probably turn snapshots back off.

Appreciate the help and knowledge! Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Static Object Detection in Frigate V 0.10! - YouTube
This is an update for Frigate version 0.10. I'll outline some breaking changes, retain modes, stationary object detection, in-progress ...
Read more >
Local realtime person detection for RTSP cameras
I wanted to integrate nest-like person detection into homeassistant with my existing IP camera so I could do things like turn on ...
Read more >
Untitled
Roebuck class frigate, Best hole digging tools? ... Let's go get some pizza i hate my life, Ron van valkenburg, Grace song christian,...
Read more >
items.46.xml - National Geographic
Every day at 6 and 9 a.m. they perform live seafood auctions that set the ... To protect the eggs from predators, keepers...
Read more >
frigate - Bountysource
frigate. Realtime object detection on RTSP cameras with the Google Coral. Become a Bounty ... So with 1080p, you'd get the following default...
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