简体   繁体   English

如何识别图像中的选定文本

[英]How to recognize selected text in image

I am using tesseract library of google to convert an image to text. 我正在使用Google的tesseract库将图像转换为文本。 My problem is how to recognise text if I tap and select a part of the image text. 我的问题是,如果我点击并选择图像文本的一部分,如何识别文本。

You should have a look at the "OCR Test" app in the play store. 您应该在Play商店中查看“ OCR测试”应用。 The code is available in the description of the app. 该代码可在应用说明中找到。 It implements a Viewfinder that enables you to select a part of a image to apply the OCR. 它实现了一个取景器,使您可以选择图像的一部分以应用OCR。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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