简体   繁体   中英

How to Extract text from image in java?

Is there any simple way to extract Text from an image? I want to print that text in the console.

for instance, if I have an image as follows,

在此处输入图片说明

we should be able to print that 'TEXT' in the console.

You should use OCR engine for this purposes.

Try https://github.com/tesseract-ocr/tesseract . It's an opensource engine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM