Shape Detection API

Photos and images constitute the largest chunk of the Web, and many include recognisable features, such as human faces, text, or QR codes. Detecting these features is computationally expensive, but, particularly on mobile devices, hardware manufacturers have long been supporting these features. This API allows accessing hardware-accelerated detectors where available. This is expected to be in origin trials in Chrome 70.


Support for this API is dependant on hardware acceleration features that vary by operating system. BarcodeDetector: Android*, macOS (improved accuracy in 10.13+) FaceDetector: Android, macOS (improved accuracy in 10.13+), Windows 10 TextDetector: Android*, macOS 10.11+, Windows 10 * Requires a device with the Play support libraries installed.




Editor's draft

Status in Chromium


Behind a flag (tracking bug) in:

  • Chrome for desktop release 74
  • Chrome for Android release 74
  • Android WebView release 74

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Public support
  • No public signals
  • No public signals
  • Positive


Last updated on 2019-02-20