Pages/CameraSettingsPage/camera_settings library

Classes

CameraSettingsPanel
ObservANT's settings: a live preview, rotation, detection threshold and name, then what it runs.
ObservantInfo
The read-only half of the page, from /healthz.
ObservantSettings
What ObservANT's settings page can change, as GET /settings answers it.
RecentDetection
A recent visit's arrival and the boxes it arrived with, which "not a cat" can ignore after the fact.

Functions

cameraPreview(String url) → dynamic
The live picture at url, 320 px wide; tests swap the network out.
parseZones(Object? json) → List
Spots of the picture as fractions of its width and height, from a JSON list of [x1, y1, x2, y2].
recentArrivalPicture(String url) → dynamic
An arrival's picture at url, 160 px wide, nothing where none is kept.
zoneJson(dynamic zone) → List<double>
zone as ObservANT takes it, [x1, y1, x2, y2] to three places.