Detectors page: ⤓ GIF button exports the timelapse to the browser's downloads
The GIF is the timelapse as shown (focused or global, sensors circled and labelled), 1000 px wide at most, red border during the event, time at the bottom. In file:// the browser cannot read the images' pixels, so the detectors, end-of-session and case-review pages now open through a local server (open_served, 127.0.0.1:8765, started in the background, serving out/ and data/ only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
127892b5af
commit
55fbe2bf77
5 files changed
+94
-9
No files matched your search
@@ -21,7 +21,7 @@ import sys
|
||||
import textwrap
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "..", "src"))
|
||||
from common.page import ROOT, open_html # noqa: E402 (bascule seule sur .venv si plotly manque)
|
||||
from common.page import ROOT, open_served # noqa: E402 (bascule seule sur .venv si plotly manque)
|
||||
import plotly.graph_objects as go # noqa: E402
|
||||
from plotly.subplots import make_subplots # noqa: E402
|
||||
import score # noqa: E402 (détecteurs, chargement et score ; met detectors/ et les outils sur le chemin)
|
||||
@@ -136,4 +136,4 @@ if __name__ == "__main__":
|
||||
sys.exit(__doc__)
|
||||
p = page(sys.argv[1], sys.argv[2])
|
||||
print(p)
|
||||
open_html(p)
|
||||
open_served(p)
|
||||
Reference in new issue
Block a user