A tool for recognizing text in a video file and storing it in a SQLite3 database.
- Grab a binary from the releases page, or build it yourself.
- Download the Tesseract OCR data
-
Clone the repository
-
Make a build directory and cd into it
mkdir -p build/release && cd build/release
- Install the dependencies
conan install ../.. --build=missing -s build_type=Release
- Build the project
conan build ../..
You will find the orc-suite
binary in the build directory.
You can use the ocs-watcher
helper script to run the OCR Suite on all video files in a directory.
It will automatically detect when a new file is added and run the OCR Suite on it, as well as run
OCR Suite periodically on all files in the directory, thus keeping the database up to date for a video file,
currently being recorded.
Use pip
to install the script:
pip install ./tools/ocs-watcher
You will need to pass the video files directory as well as the path to the ocr-suite
binary to the script:
ocs-watcher -o ./bin/dir/ocr-suite -i ./movies/dir/ -t ./tesserarct/data/dir/ -f 10