博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python中的验证码识别库PyTesser
阅读量:7044 次
发布时间:2019-06-28

本文共 1494 字,大约阅读时间需要 4 分钟。

PyTesser

PyTesser is an Optical Character Recognition module for Python. It takes as input an image or image file and outputs a string.

PyTesser uses the , converting images to an accepted format and calling the Tesseract executable as an external script. A Windows executable is provided along with the Python scripts. The scripts should work in other operating systems as well.

Dependencies

is required to work with images in memory. PyTesser has been tested with Python 2.4 in Windows XP.

Usage Example

>>>from pytesser import*  >>> image =Image.open('fnord.tif')  # Open image object using PIL  >>>print image_to_string(image)     # Run tesseract.exe on image  fnord  >>>print image_file_to_string('fnord.tif')  fnord

(more examples in )

 

pytesser下载

Tesseract OCR engine下载:

PIL官方下载

 

Django Simple Captcha is an extremely simple, yet highly customizable Django application to add captcha images to any Django form.

Features

  • Very simple to setup and deploy, yet very configurable
  • Can use custom challenges (e.g. random chars, simple maths, dictionary word, ...)
  • Custom generators, noise and filter functions alter the look of the generated image
  • Supports text-to-speech audio output of the challenge text, for improved accessibility

Requirements

  • Django 1.0+
  • A fairly recent version of the Python Imaging Library (PIL) compiled with FreeType support
  • Flite is required for text-to-speech (audio) output, but not mandatory

Documentation

Read the .

转载于:https://www.cnblogs.com/lanzhi/p/6468200.html

你可能感兴趣的文章
【转载】动态代理DynamicProxy 介绍
查看>>
读写cookie的方法
查看>>
淘宝技术发展(Oracle/支付宝/旺旺)
查看>>
分布式版本控制工具 Mercurial 使用教程
查看>>
使用Keil MDK运行第一个STM32程序
查看>>
同时寻找最大数和最小数的最优算法
查看>>
【Visual C++】游戏开发笔记十四 游戏画面绘图(四) 华丽的CImage类
查看>>
GDI+在VS2008 编译不过的解决方法
查看>>
强烈推荐一个超酷的wordpress状态信息图
查看>>
分区表、分区索引3(海量数据测试)
查看>>
AIX查看CPU核数
查看>>
Android 记录和恢复ListView滚动的位置的三种方法
查看>>
Silverlight和Metro中ListBox样式的添加及使用
查看>>
IOS设计模式-抽象工厂
查看>>
对Linux命令进一步学习vim(二)
查看>>
AppStore应用转让流程
查看>>
php模板引擎
查看>>
.NET Core RC2/RTM 明确了时间表
查看>>
解决Eclipse Debug source not found问题
查看>>
SQL Server SQL分页查询
查看>>