

All of these APIs only expose what's supported in the underlying device.Ī short example will give you a taste of these APIs, all of which work in a similar fashion. The Text Detection API reads Latin-1 text (as defined in iso8859-1) in images. (There is a QR code demo at ) The value can be anything from a single set of digits to multi-line text. The Barcode Detection API decodes barcodes and QR codes into strings.

To give you rudimentary control of performance, you can limit the number of returned faces and prioritize speed over performance. Given an image bitmap or a blob, the Face Detection API returns the location of faces and the locations of eyes, noses, and mouths within those faces. The Shape Detection API consists of three APIs: A Face Detection API, a Barcode Detection API and a Text Detection API.

As Chrome 70, this API is available for experimentation through a Chrome origin trial. It does this without the use of a performance-killing library. The Shape Detection API makes a device's shape detection capabilities available on the web, letting you identify faces, barcodes, and text in images. Chrome 70 is beta as of September 13, 2018. View a complete list of the features in Chrome 70 on. Unless otherwise noted, changes described below apply to the newest Chrome Beta channel release for Android, Chrome OS, Linux, macOS, and Windows.
