What this is
InsightFace (RetinaFace + ArcFace, ONNX-CPU) recognition with face embeddings
stored in Redis Stack and indexed for cosine-KNN search. Three input paths:
- Mobile — Dynamsoft Camera Enhancer captures frames and POSTs them to
/api/recognize.
- Desktop USB — getUserMedia in the browser, same recognize endpoint.
- CCTV / server-side — backend opens an RTSP / HTTP-MJPEG stream, runs detection at a capped FPS, and serves an annotated MJPEG.