
PatchCore anomaly detector: takes an Image and emits {score: Double, heatmap: Image} — an image-level anomaly score plus a per-pixel heatmap Image. Sharper localisation than PaDiM at higher cost from coreset memory-bank matching over backbone features.
Batch review of captured parts: each stored image is scored and its heatmap streamed to a browser for an inspector to triage offline.
Inline reject decision: a video feed is scored, an expression stage applies the pass/fail threshold, and a filter forwards only the failing parts as JSON.
model_path and device are fixed at startup; swapping the checkpoint or backend requires a redeploy.Image short-circuits to a zero score and a 1x1 black heatmap without running the network.Automated release