Skip to main content

Search the text of images in your folder with Tesseract OCR.

Project description

pic-search

Search the text of images in your folder.

Usage

pic-search "string" [--recursive] [--dir $DIR] [--tesseract $DIR] [--verbose]

Where:

  • string is the string to search for.
  • --recursive (optional) will search for the string in all subdirectories.
  • --dir $DIR (optional) is the directory to search in. Defaults to the current directory.
  • --tesseract $EXE (optional) is the path to the tesseract executable, only needed if it's not in the path or TESSERACT_EXE environment variable.
  • --verbose (optional) will print more information to the console.

Installation

Install Tesseract: https://tesseract-ocr.github.io/tessdoc/Installation.html

Tesseract MUST be installed separately.

Then, tesseract directory must either be:

  • In the path
  • In the folder of TESSERACT_EXE environment variable
  • Given as --tesseract $EXE CLI Option

This tool itself can be installed with pip:

pip install pic-search-ocr

Or any similar package manager, like uv:

uv pip install pic-search-ocr

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

pic_search_ocr-1.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

pic_search_ocr-1.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pic_search_ocr-1.0.1.tar.gz.

File metadata

  • Download URL: pic_search_ocr-1.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for pic_search_ocr-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9bc8c2f8550694f967ccd514ceb90a5f32f0f930610e0561311351fdf60448af
MD5 076b9b4fab5c92ffb6332eb644c0357a
BLAKE2b-256 cacec9d5b51f27ba1263081784425a4b33e6fefcc16488f73ed1dbb9028fc6c9

See more details on using hashes here.

File details

Details for the file pic_search_ocr-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pic_search_ocr-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for pic_search_ocr-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03bd0ba33f05516a02318a30c81e8409bfaadffacb5d91d7ff8c0e6c10996124
MD5 3441ee6438d6a154aefe6dd195b54d6f
BLAKE2b-256 d13dc218fe0c488c23557933554144f0a903c536e45589396b7fa8ce2c9ec8da

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