Skip to main content

text extractor from images

Project description

pytextractor

python ocr using tesseract/ with EAST opencv text detector

Uses the EAST opencv detector defined here with pytesseract to extract text(default) or numbers from images.

usage: text_detection.py [-h] [--east EAST] [-c CONFIDENCE] [-w WIDTH]
                         [-e HEIGHT] [-d] [-n] [-p PERCENTAGE] [-b MIN_BOXES]
                         [-i MAX_ITERATIONS]
                         images [images ...]

Text/Number extractor from image

positional arguments:
  images                path(s) to input image(s)

optional arguments:
  -h, --help            show this help message and exit
  --east EAST           path to input EAST text detector
  -c CONFIDENCE, --confidence CONFIDENCE
                        minimum probability required to inspect a region
  -w WIDTH, --width WIDTH
                        resized image width (should be multiple of 32)
  -e HEIGHT, --height HEIGHT
                        resized image height (should be multiple of 32)
  -d, --display         Display bounding boxes
  -n, --numbers         Detect only numbers
  -p PERCENTAGE, --percentage PERCENTAGE
                        Expand/shrink detected bound box
  -b MIN_BOXES, --min-boxes MIN_BOXES
                        minimum number of detected boxes to return
  -i MAX_ITERATIONS, --max-iterations MAX_ITERATIONS
                        max number of iterations finding min_boxes

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

pytextractor-0.5.tar.gz (758.8 kB view details)

Uploaded Source

Built Distribution

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

pytextractor-0.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pytextractor-0.5.tar.gz.

File metadata

  • Download URL: pytextractor-0.5.tar.gz
  • Upload date:
  • Size: 758.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for pytextractor-0.5.tar.gz
Algorithm Hash digest
SHA256 2b6ca4146db8246a237edd36ede43f53f26245a2bcaf24456c9d77bc2bc99ab9
MD5 f2e6fee25929f7d49240837f0ad41590
BLAKE2b-256 7fba851979028b2f345191fa7658b30aff0f816b4106771f25a4dcd21990386d

See more details on using hashes here.

File details

Details for the file pytextractor-0.5-py3-none-any.whl.

File metadata

  • Download URL: pytextractor-0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for pytextractor-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9ecfbc8ac42381b92e696c9a8ea1a8da3480765d58b2bd3bfc62f305d89a7387
MD5 fff33c47098b582d2e7e692bf37c4922
BLAKE2b-256 32da18de2817fec37c46bb49f5fc5d93265bcf5d5e7157970052471a0bf00452

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