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.1.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.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocrgrep-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 974f38ced4129fcfcb6f80164f84a34e09c4c386e4ea4ea8ff0419f51394c7db
MD5 a0f6e9a3a09568a8c8c4380eeadcab78
BLAKE2b-256 5a28e5f569ea85d365d2ed10f1f994f44f4df8db38303c0f45dc501b8ec046d4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ocrgrep-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2093504f28d9b4e8cbda93780484ccc1afbd7d6758dc70498c9535d3b9a23f1e
MD5 540967b4df635d84539a98833310699a
BLAKE2b-256 c009a62032f2ff794935d94eac43a06e6eebe39fbf5dcd68f0ab9b76510b41e1

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

0.2.2

2 files

This release

0.2.1 This release

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