Preserve output from 'best.jpg' API after Frigate restart (to get rid of black boxes for all tracked objects)
See original GitHub issueIt 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:
(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:
- Created 2 years ago
- Comments:11 (2 by maintainers)
Top GitHub Comments
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.Ah ok, so once that replacement goes in than I can probably turn snapshots back off.
Appreciate the help and knowledge! Thank you