Text Detection API

The Text Detection API is a subset of the Shape Detection API which provides the ability to detect and optionally transcribe text 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.

Motivation

Native platforms such as Android, iOS, macOS and Windows 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 design this functionality themselves or include a large third party OCR library in their application download. This API provides these same benefits to the web platform where it is available on native.

Demos

Documentation

Specification

Editor's draft

Status in Chromium

Blink>ShapeDetection


In developer trial (Behind a flag) (tracking bug) in:

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

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
  • No signals

Owners

Comments

This feature depends on built-in text detection support which is only provided by Android*, macOS 10.11 and Windows 10 at the moment. * Requires a device with the Play support libraries installed.

Last updated on 2020-10-02