OCR a Selected Area of an Image in JavaScript

Since version 8.2, Dynamsoft’s ImageCapture Suite, an image acquisition SDK optimized for web applications, supports seamless integration with the 1-D/2-D Barcode Reader and OCR add-ons.

The following source code will show you how to use ImageCapture Suite to capture images from webcams and scanners, select an area of the scanned image using your mouse and convert the selected area to a searchable text/PDF file.

If you’d like to test out the source code, you can first download and install the suite from Dynamsoft’s website: ImageCapture Suite 30-Day Free Trial Download

1.       Capture images from scanners, webcams and other TWAIN/WIA/UVC compatible devices.

2.       Enable your customers to select an area of the scanned image.

Use the OnImageAreaSelected event to select the target area. The event is triggered when a user drags the mouse to select an area.

3.       Convert the selected area to a searchable file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe Newsletter

Subscribe to our mailing list to get the monthly update.

Subscribename@email.com