Skip to main content

grep-like OCR tool for images and videos.

Project description

ocrgrep

A grep-like OCR tool for image and video files, utilizing the fast and accurate Google Screen AI engine via locro.

$ ocrgrep -ih 'grep-like' screenshot.png    
rep README.md in main Preview ocrgrep A grep-like OCR tool for image and video files, uti
usage: ocrgrep.py [-i] [-m NUM] [-p] [-r] [-w NUM] [-C NUM] [-F] [-h] [-t] [--include GLOB]
                  [--exclude GLOB] [--no-image] [--no-video] [--video-max-msec NUM]
                  [--video-step-msec NUM] [--help]
                  pattern files [files ...]

positional arguments:
  pattern
  files

options:
  -i, --ignore-case     ignore case distinctions in patterns and data
  -m, --max-count NUM   stop after NUM selected lines
  -p, --progress        show progress bar
  -r, --recursive       scan subfiles in directories
  -w, --workers NUM     concurrency (default: 16)
  -C, --context NUM     print NUM characters of output context (default: 40)
  -F, --fixed-strings   PATTERN is a string
  -h, --no-filename     suppress the file name prefix on output
  -t, --no-timestamp    suppress the timestamp prefix on output for videos
  --include GLOB        search only files that match GLOB (a file pattern)
  --exclude GLOB        skip files that match GLOB
  --no-image            ignore image files
  --no-video            ignore video files
  --video-max-msec NUM  stop after NUM milliseconds of video
  --video-step-msec NUM
                        scan a frame for every NUM milliseconds of video (default: 1000)
  --help                show this help message and exit

Install

pip install git+https://github.com/sergiocorreia/clv-locro.git
locro download
pip install ocrgrep

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

ocrgrep-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

ocrgrep-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file ocrgrep-0.1.0.tar.gz.

File metadata

  • Download URL: ocrgrep-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ocrgrep-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9be6c293ab28509fc7cc4630c6f9c21318e9bcbc15308f16f3b6bb53f21e4bd6
MD5 17cfddf0c13b873bedda1fc4624810e5
BLAKE2b-256 3a64e0093d2f74a585dda916403623829784810affbebf97a9ce658e974797c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocrgrep-0.1.0.tar.gz:

Publisher: publish.yml on tmctmt/ocrgrep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ocrgrep-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ocrgrep-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ocrgrep-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec55583b65f4b1b9cbd0894b5d4c66c74433581194afa8d5befb1887c2b92896
MD5 8ad6e3517b750d3b1945ff35fdcd49bc
BLAKE2b-256 f4ad025d9d38b5e4434310a854305f60c27e57db954cf78f5207d6f8a7ca795c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocrgrep-0.1.0-py3-none-any.whl:

Publisher: publish.yml on tmctmt/ocrgrep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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