
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
github.com/moravianlibrary/pero_ocr_batch
Advanced tools
Simple CLI util for running OCR on images through PERO OCR API
Usage:
Usage of batch_pero_ocr:
-c string
cancel request with given id
-d string
dir to ocr in-place
-e int
engine id for use in ocr process (default 1)
-engines
ask ocr server for available engines information
-pull-only string
only download alto + txt for given request id
Config is stored in users $HOME directory as .ocrtools.yml.
When no config is available in invoking directory or home dir, new config templated is created in $HOME/.ocrtools.yml.
pero:
api_key: api-key-here
default_engine: 1
endpoint: https://pero-ocr.fit.vutbr.cz/api/
Please mind, that trailing slash "/" in endpoint is mandatory.
./pero_ocr -d <dir with images>
While ocr is running every event is logged into ocr_log.txt located in directory with images.
Request ID is recorded on the begining of log, which may be used later for canceling ocr request or additional download of OCR and ALTO files.
Default selected engine is engine with id 1, which should be: czech_old_printed, engine with id 2 should be: czech_old_handwritten.
Engine selection is done by -e <engine ID> switch in combination with -d switch.
All available engines can be printout by ./pero_ocr -engines.
./pero_ocr -c <request id>
Downloads OCR and ALTO from given request id into the target directory.
./pero_ocr -pull-only <request id> -d <dir with images>
$ go build
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.