Repository navigation
fix(engine): decide day or night per frame and skip frozen frames - #459
MateoLostanlen wants to merge 5 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #459 +/- ##
===========================================
+ Coverage 80.51% 84.24% +3.72%
===========================================
Files 6 6
Lines 847 882 +35
===========================================
+ Hits 682 743 +61
+ Misses 165 139 -26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Tested on pi-test (Pi 5, Debian 13, Docker 29), branch develop + #419 + #459 + #461, with the fake Reolink cameras of pyronear/pyro-envdev#65: camera 1 serves a colour frame ( One camera at night: OK
Both cameras at night: OK
Not tested: the morning wake-up after the 1 h sleep, and the detection history drop on a night frame. |
… camera - The pass only collected the frames it received, so one night frame next to a camera answering 204 (no fresh image, PR #458) read as "every camera reports night" and put the site to sleep for an hour. The site now sleeps only when every expected frame came back and all of them are night frames; one day frame still wakes it. - After the night sleep, only the first camera was probed: in infrared or down, it kept the whole site asleep in daylight. Every camera is probed until one shows daylight, and the site stays asleep only when all of them answer night.
|
I looked at the evening and morning side of this change, for pyronear/vision-rd#157 (false alerts at the day/night transition). This PR also fixes evening alerts sent at dawn On With this PR, a pass with at least one day frame keeps the site awake, so the queue is sent at the start of the next pass. The test below checks it: one PTZ camera, pose 1 still in colour and staging an alert, pose 2 already in infrared, then every pose in infrared.
Could you add it to the PR so this does not come back? Test for
|
41ce4cf to
8443ba6
Compare
Part of pyronear/roadmap#16, engine side of #422.