Zuschnitt als Regel statt als gespeichertes Bild
Die Sichtung merkt sich jetzt, WO der Vogel im Foto sitzt (vier Zahlen); die Anzeige schneidet daraus bei jedem Aufruf. Eine geaenderte Regel wirkt damit sofort auf den ganzen Bestand. Altbestand faellt auf das alte Bild zurueck.
This commit is contained in:
1 parent
f572c20080
commit
d8d3efaa5d
14 files changed
+421
-19
No files matched your search
@@ -35,6 +35,9 @@ def payload_of(sighting: Sighting) -> dict:
|
||||
"frames_with_bird": sighting.frames_with_bird,
|
||||
"votes": {k: round(v, 4) for k, v in sighting.votes.items()},
|
||||
"mean_bird_score": round(sighting.mean_bird_score, 4),
|
||||
# Vier Zahlen statt eines zweiten Bildes: siehe web/dex/zuschnitt.py.
|
||||
"box": ([round(w, 5) for w in sighting.best_box]
|
||||
if getattr(sighting, "best_box", None) else None),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user