Skip to main content

ocrgrep

A grep-like OCR tool for image, video and document files, utilizing the fast and accurate Chrome 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    [-i] [-m NUM] [-p] [-r] [-w NUM] [-C NUM] [-F] [-h] [-t] [--include GLOB] [--exclude GLOB]
                  [--no-image] [--no-video] [--no-document] [--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 scanning file after NUM matches
  -p, --progress        show progress bar
  -r, --recursive       scan subfiles in directories
  -w, --workers NUM     concurrency
  -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-info         suppress extra info for matches (video timestamp, document page number)
  --include GLOB        search only files that match GLOB (a file pattern)
  --exclude GLOB        skip files that match GLOB
  --no-image            skip image files
  --no-video            skip video files
  --no-document         skip document 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

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.2.2.tar.gz (5.8 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.2.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocrgrep-0.2.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ocrgrep-0.2.2.tar.gz
Algorithm Hash digest
SHA256 75a6e902738276fce88e07c1e099e71ff818417f9f61ad6de8aa8053b8ab9479
MD5 0eb8e9c27fa8bd4466b57594a70598c7
BLAKE2b-256 fd684a374da04ef84eaf54c7a3c16bb4c90321529155ebe57241f410b02d5e1f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ocrgrep-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ocrgrep-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 525c8ad2580de002e36075fd0114a7d82553d122e6338bf6bf2315ff5ccbcf16
MD5 efd865b10cfea866e40b635538b802dd
BLAKE2b-256 d820ae9f6459472550fcdf2314f68b332dfadd465adc53a9bb55199044477abe

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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