← Back to release summary

Barcode Detection API

Category
Multimedia
Type
New or changed feature
Status
Enabled by default (Chrome 83)
Intent stage
Prepare to ship

Summary

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.

Standards & signals

Docs: https://web.dev/shape-detection/ https://docs.google.com/document/d/1QeCDBOoxkElAB0x7ZpM3VN3TQjS1ub1mejevd2Ik1gQ/edit

Samples: https://paul.kinlan.me/barcode-detection/ https://web.dev/shape-detection/#barcodedetector

Explainers: https://github.com/WICG/shape-detection-api/blob/master/README.md

View on chromestatus.com