Skip to main content

Recognize numbers from images (captcha and others) using Tesseract OCR

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

captcha_number-0.1.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

captcha_number-0.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file captcha_number-0.1.2.tar.gz.

File metadata

  • Download URL: captcha_number-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for captcha_number-0.1.2.tar.gz
Algorithm Hash digest
SHA256 514dd4a37c19166c987e7d08c1b9d65f7e79883cb05cf73e3224bbec29eb396e
MD5 947ef8d96acc3be1a40f481d51c4f932
BLAKE2b-256 a659a7ebc7ca1d0a088573d99cd24695aba8a7e5ba591d2219126b830dd0f928

See more details on using hashes here.

File details

Details for the file captcha_number-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: captcha_number-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for captcha_number-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb693689bd5fd9e1c872564791fabac90b987c43167f5c39b1fa884012f6c268
MD5 ee1199fb43ffe4e579639fa1b6e5f539
BLAKE2b-256 9ef2d0c2515d77c726721c621f850adeaca6c503042028590e3ea15ec02b073a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page