{"slug": "engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing", "title": "Engineering a Cross-Platform Face Recognition Pipeline with Anti-Spoofing", "summary": "A developer built a production-grade cross-platform face recognition pipeline with anti-spoofing, using a lightweight RFB-320 face detector, FaceNet-style embeddings, and HNSW indexing for sub-millisecond matching. The system runs offline on Android tablets with RSA-licensed deployment and includes dynamic threshold adjustment that reduces false accepts by ~30%.", "body_md": "Check out my article on this blog spot, it talks about building a face recognition system that actually works in production — not a demo, not a toy, something you can put on an Android tablet mounted on a warehouse wall and walk away.\n\nIt covers the full pipeline:\n\n- Finding the face with a lightweight RFB-320 model (1.27 MB, runs on CPU)\n- Anti-spoofing to stop print and replay attacks (0.1 threshold, 13.9 MB model)\n- FaceNet-style 128-dim embeddings with L2 normalization\n- HNSW indexing for sub-millisecond matching at 10,000+ enrollees\n- Dynamic gap-based threshold adjustment that cuts false accepts by ~30%\n- Thread-safe ONNX inference with three models running sequentially\n- Offline RSA-licensed deployment for factories, mines, and remote sites\n- Real issues we hit: channel order bugs, semaphore starvation, per-device liveness drift, cold start latency\n\n**Read the full article here:**\n\n👉 [Engineering a Cross-Platform Face Recognition Pipeline with Anti-Spoofing](https://erwinwilsonceniza.qzz.io/blogs/engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing)", "url": "https://wpnews.pro/news/engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing", "canonical_source": "https://dev.to/erwin_wilsonceniza2_adf9/engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing-2j81", "published_at": "2026-06-28 13:20:03+00:00", "updated_at": "2026-06-28 14:03:43.730590+00:00", "lang": "en", "topics": ["computer-vision", "machine-learning", "ai-products", "developer-tools"], "entities": ["FaceNet", "ONNX", "HNSW", "RFB-320", "Android"], "alternates": {"html": "https://wpnews.pro/news/engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing", "markdown": "https://wpnews.pro/news/engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing.md", "text": "https://wpnews.pro/news/engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing.txt", "jsonld": "https://wpnews.pro/news/engineering-a-cross-platform-face-recognition-pipeline-with-anti-spoofing.jsonld"}}