Metadata-Version: 2.4
Name: captcha_number
Version: 0.1.2
Summary: Recognize numbers from images (captcha and others) using Tesseract OCR
Home-page: https://github.com/RuomiChen/captcha-number
Author: MiChen
Author-email: rmcyyds@gmail.com
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: Pillow>=10.0.0
Requires-Dist: pytesseract>=0.3.10
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# captcha-number

A Python package for solving number captchas using pytesseract.

demo:

tesseract_path = r"D:\tesseract\tesseract.exe"

# transform PIL Image
img = Image.open(BytesIO(response.content))

#  captcha_number test
captcha_text = captcha_number(img, tesseract_path=tesseract_path, save_debug=True)
captcha_text = captcha_text.strip()
