如何提取图像使用OpenCV的或OCR文字的tesseract? [英] How to extract text from image using openCV or OCR tesseract?

查看:2157
本文介绍了如何提取图像使用OpenCV的或OCR文字的tesseract?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
   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的为 <一个href="http://stackoverflow.com/questions/8667818/opencv-c-obj-c-detecting-a-sheet-of-paper-square-detection/8863060#8863060">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.

这篇关于如何提取图像使用OpenCV的或OCR文字的tesseract?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆