Text Detection API
With the Text Detection API, you can detect text regions in images and videos.
Demo
- Open the Chrome browser on your computer. Type
about://flagsin the URL bar and enable the#enable-experimental-web-platform-featuresflag. Then restart your browser. - Upload an image that contains text.Choose file...
- Check out the code of the demo below!
Limitations of the Text Detection API
The Text Detector interface of the Shape Detection API is an experimental feature that can identify text within images and videos. However, it currently works only in Chrome and Edge and requires the Experimental Web Platform features flag to be enabled. Also while this API can detect text regions, it cannot extract the actual text content from those regions on its own.
API
window.TextDetector
Code
Links & Documentation
Ready to generate your PWA?
Try our PWA toolkit free of charge and without limits for 14 days. No credit card required.
Generate PWA See plans