Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/335.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 哪些图像处理技术有助于从这些图像中分离数字文本?_Python_Opencv_Image Processing_Ocr_Captcha - Fatal编程技术网

Python 哪些图像处理技术有助于从这些图像中分离数字文本?

Python 哪些图像处理技术有助于从这些图像中分离数字文本?,python,opencv,image-processing,ocr,captcha,Python,Opencv,Image Processing,Ocr,Captcha,我一直在测试黑白验证码的图像处理技能,我想尝试对更复杂的验证码进行图像处理,如下所示: 有谁能帮我提供一些信息或资源,告诉我从这里到哪里去。您可以使用Pytesser或Tesseract作为OCR。尝试谷歌OCR-Python,你会发现许多Python-OCR库或程序可以实现你想要的 下面是一个使用pytesser的示例: from PIL import Image from pytesser import * temp_img = Image.open('your_image.jpg') yo

我一直在测试黑白验证码的图像处理技能,我想尝试对更复杂的验证码进行图像处理,如下所示:


有谁能帮我提供一些信息或资源,告诉我从这里到哪里去。

您可以使用Pytesser或Tesseract作为OCR。尝试谷歌OCR-Python,你会发现许多Python-OCR库或程序可以实现你想要的

下面是一个使用pytesser的示例:

from PIL import Image
from pytesser import *
temp_img = Image.open('your_image.jpg')
your_digit = image_to_string(temp_img)
print your_digit

欢迎来到StackOverflow。请按照您创建此帐户时的建议,阅读并遵循帮助文档中的发布指南,在这里申请。StackOverflow不是设计、编码、研究或教程资源。