Infra
Per-category rules that decide whether a detection group is worth a model call: confidence, frames seen, estimated size on the road, distance, and being in the roadway.
20 → 10
stage-2 calls on 20 labelled photos
Source: docs/lens/evaluation.md
One rule per category, in src/lib/video/gate/rules. A group that fails any check stays a staff candidate and costs no model call; line cracks are kept as survey data and never escalated.
| Category | Min confidence | Frames | Size | Within | In roadway | If it passes | Why |
|---|---|---|---|---|---|---|---|
| Pothole | 0.55 | 2 | ≥ 0.05 m², ≤ 6 m², ≥ 0.2% of frame, ≤ 15% of frame | 15 m | no | Verify | A hole between about a 22 cm square and 6 m², within 15 m of the camera, seen in two frames. Smaller holes, far sightings and one-frame hits are not a crew visit. |
| Alligator cracking | 0.5 | 2 | ≥ 1 m², ≥ 2.0% of frame | 20 m | no | Verify | Fatigue cracking over at least 1 m² within 20 m. Smaller patches feed the pavement survey instead of a work order. |
| Longitudinal / transverse crack | 0.5 | 1 | none | any | no | Survey only | Line cracks are recorded for the pavement survey and never escalated on their own. |
| Road debris / obstruction | 0.45 | 2 | ≥ 0.25 m², ≥ 0.5% of frame, ≤ 25% of frame | 25 m | required | Verify | An object of at least about half a metre square lying in the road. Litter and gravel are below the bar. |
| Fallen tree | 0.66 | 2 | ≥ 2.0% of frame, ≤ 60% of frame | any | required | Verify | A tree lying in the road band, large in frame, in two frames. A standing tree beside the road never qualifies. |
| Damaged sign | 0.5 | 2 | ≥ 0.3% of frame | any | no | Verify | A bent, knocked-down or vandalised sign seen in two frames. Size is not the test: a small stop sign that is down still matters. |
| Graffiti | 0.55 | 2 | ≥ 1.0% of frame | any | no | Verify | Graffiti covering at least 1% of the frame, in two frames. Small tags and stickers are left as candidates. |