You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix front-door friction surfaced by usability test
- README headline quickstart now runs on a bare `pip install trio-retina`
(numpy only): a stand-in ScriptedDetector emits a real retina.event stream
with no model, GPU, or video file. The YOLO + video_frames form moves to a
clearly-labeled "▶ with a real model + video" [yolo] block below it.
- CountRule: threshold is now positional, so CountRule(3) works (previously a
confusing TypeError from the keyword-only arg); CountRule(threshold=3)
unchanged. Added a positional test.
- SECURITY.md: supported-versions wording updated from "early development
(0.0.x)" to the current 0.2.x line; trust model unchanged.
- CHANGELOG: terse Changed / Fixed lines under [Unreleased].
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Runs on a bare `pip install trio-retina` (numpy only) — no model, no GPU, no video file. A stand-in detector walks one "person" across a dock zone; Retina emits the real `retina.event` stream:
38
+
39
+
```python
40
+
import numpy as np
41
+
42
+
from retina import CountRule, IoUTracker, Retina, Zone, ZoneRule
43
+
from retina.detect import Detection
44
+
45
+
46
+
classScriptedDetector:
47
+
"""A stand-in model: one 'person' walking across a dock zone."""
48
+
49
+
def__init__(self):
50
+
self._xs =list(range(0, 102, 6))
51
+
52
+
def__call__(self, frame):
53
+
x =self._xs.pop(0) ifself._xs else100
54
+
return [Detection(label="person", bbox=(x -10, 40, x +10, 60), confidence=0.9)]
No model, no GPU? The [`examples/`](examples/) quickstarts run on synthetic detections — `git clone` the repo (they ship with the source, not the wheel) and start with`python examples/quickstart.py` (the forecast / video demos need `[video]` + a clip).
97
+
More no-model examples ship with the source (not the wheel) — `git clone` the repo and run`python examples/quickstart.py` (the forecast / video demos need `[video]` + a clip).
0 commit comments