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@ba53ee24ee649e39c23daee3c8e9bec946642743
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.1.tar.gz (5.0 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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocrgrep-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 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.1.tar.gz
Algorithm Hash digest
SHA256 f50e765044ee670ebe0671a99cc289addff6641c83707e77b05ee954e1e23ce9
MD5 1b8b1e6b8fe449b2e1d0b51598ee0bec
BLAKE2b-256 4dceb5fc521a8b9d6a2648ca7c6fe37aeb82ee665a30697d492b6ebd0a0652d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocrgrep-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: ocrgrep-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c48a83035bc48824fa023669a6061259379d22b4864be352875b990d3493b028
MD5 40e20d8bcc0fe4717e7235d9e0b18ed1
BLAKE2b-256 4e29a4228c705611674549f474a81d9d4dc61848db7ab4f03d6baec171c082d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocrgrep-0.1.1-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