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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f50e765044ee670ebe0671a99cc289addff6641c83707e77b05ee954e1e23ce9
|
|
| MD5 |
1b8b1e6b8fe449b2e1d0b51598ee0bec
|
|
| BLAKE2b-256 |
4dceb5fc521a8b9d6a2648ca7c6fe37aeb82ee665a30697d492b6ebd0a0652d0
|
Provenance
The following attestation bundles were made for ocrgrep-0.1.1.tar.gz:
Publisher:
publish.yml on tmctmt/ocrgrep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocrgrep-0.1.1.tar.gz -
Subject digest:
f50e765044ee670ebe0671a99cc289addff6641c83707e77b05ee954e1e23ce9 - Sigstore transparency entry: 1745654116
- Sigstore integration time:
-
Permalink:
tmctmt/ocrgrep@84238a0355610c2e462087774891e59e5e910605 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/tmctmt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@84238a0355610c2e462087774891e59e5e910605 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c48a83035bc48824fa023669a6061259379d22b4864be352875b990d3493b028
|
|
| MD5 |
40e20d8bcc0fe4717e7235d9e0b18ed1
|
|
| BLAKE2b-256 |
4e29a4228c705611674549f474a81d9d4dc61848db7ab4f03d6baec171c082d1
|
Provenance
The following attestation bundles were made for ocrgrep-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on tmctmt/ocrgrep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocrgrep-0.1.1-py3-none-any.whl -
Subject digest:
c48a83035bc48824fa023669a6061259379d22b4864be352875b990d3493b028 - Sigstore transparency entry: 1745654220
- Sigstore integration time:
-
Permalink:
tmctmt/ocrgrep@84238a0355610c2e462087774891e59e5e910605 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/tmctmt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@84238a0355610c2e462087774891e59e5e910605 -
Trigger Event:
release
-
Statement type: