如何提取图像使用OpenCV的或OCR文字的tesseract?图像、文字、OCR、OpenCV

由网友(呐喊,@の咆哮,@)分享简介:可能重复: Android的OCR? 我目前正在做基于一个图像采集的android手机上的文字识别的项目。我想问问如何显示文本可以从图像中提取? i'm currently doing a project on text recognition based on a image capture in androi...

可能重复:    Android的OCR?

我目前正在做基于一个图像采集的android手机上的文字识别的项目。我想问问如何显示文本可以从图像中提取?

i'm currently doing a project on text recognition based on a image capture in android phone. I want to ask how the text can be extracted from image?

是否有任何的OpenCV或OCR的tesseract教程提取?

Does have any openCV or OCR tesseract tutorial for extracting ?

推荐答案

的最快方法(也许不是理想的)是实施步骤如下:

The fastest way (maybe not the ideal) is to implement the following steps:

使用OpenCV的为 detect纸张或文本区域 必需的 deskew该图片(如有必要); 将图像保存到磁盘TIFF 最后,拨打的tesseract CMD行应用程序传递TIFF图像作为参数来启动文本识别过程。 Use OpenCV to detect the paper sheet or the text area; Perform any processing necessary to deskew the image (if necessary); Save the image to disk as TIFF; and finally, call Tesseract cmd-line application passing the TIFF image as parameter to start the text recognition process.
阅读全文

相关推荐

最新文章