The Barcode Detection API is a subset of the Shape Detection API which provides the ability to detect and decode barcodes in an image provided by script. The image may come from any type of image buffer source such as an <image>, <video> or <canvas> tag. Some native platforms include built-in libraries for performing text detection and optical character recognition (OCR) in images. The availability of these libraries means that developers do not need to include a large third party library.
Demos
Documentation
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 83
- Chrome for Android release 83
- Android WebView release 83
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- No signal
- No signal
- No signal
- Positive
Owners
Intent to Prototype url
Intent to Prototype threadLast updated on 2021-01-12
Comments
This feature depends on built-in face detection support which is only provided by Android* and macOS** at the moment. * Requires a device with the Play support libraries installed. ** Detection performance is improved in 10.13 through use of hardware acceleration in the Vision Framework.