Browser APIs
Experimental and shipping web platform APIs for detecting faces, barcodes, and shapes in camera streams or images.
Source
In this section
| Page | API |
|---|---|
| Shape Detection | WICG spec — faces, barcodes, text in live/still images |
| Barcode Detection API | BarcodeDetector interface |
| Browser BarcodeDetect API using Image | Image-based scanning example |
Browser support notes
- Barcode Detection is Chromium-first; check
BarcodeDetectoravailability before shipping - Prefer HTTPS + user gesture for camera access
- Fallback to ML Kit on native mobile