如何使用opencv从图像中提取文本 [英] how to extract text from image using opencv

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

问题描述

大家好,
我是opencv的新手.我想知道如果有人告诉我如何从图像中提取文本数据,那是我必须遵循的步骤.感谢任何形式的帮助.

Hi All,
i am new with opencv. i want to know how extract text data from image if any one tell me which is the steps i have to follow. any kind of help appreciated.

推荐答案

类似的问题看起来很有帮助: ^ ]

它说:
最快的方法(可能不是理想的方法)是执行以下步骤:
-使用OpenCV检测纸张或文本区域;
-执行必要的处理以校正图像(如有必要);
-将图像另存为TIFF;
-最后,调用Tesseract cmd-line应用程序,将TIFF图像作为参数传递,以开始文本识别过程.
Similar question asked that looks helpful: How to extract text from image using openCV or OCR tesseract[^]

It says:
The fastest way (maybe not the ideal) is to implement the following steps:
- 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从图像中提取文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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