a docker version of pythocr python OCR script
Like the original script, but because it is dockerized, you need to mount some stuff, here is an exemple:
docker run --rm -it \
-v /path/to/my/vpys:/vpys:ro \
-v /path/to/my/input/dir:/input \
-v /path/to/my/output/dir:/output \
-v /path/to/my/config:/userconfig:ro \
pocketsnizort/pythocr --mode full -c /userconfig/my-conf.ini --timid --vpy /vpys/my-vpy.vpy /input/my-video.mp4
Some explaination:
--rmto delete the container after it has finished, because this container is more of a "launched manually" than a real service. It will NOT delete the data present in you mounted volumes.-itNecessary if you use the--timidoption as it requires user input.-v /path/to/my/vpys:/vpys:romount folder containing vapoursynth scripts necessary to the filtering job (may be omited in cas of--mode ocr). therostands for read-only.-v /path/to/my/input/dir:/inputmount of input folder, note that you can mount a file directly so in the command above, we could just use-v /path/to/my/input/dir/my-video.mp4:/input/my-video.mp4-v /path/to/my/output/dir:/outputmount output folder, do not forget this one, and do not make it read-only.-v /path/to/my/config:/userconfig:romount of the configuration directory, there is no configuration included, so you may want to grab one here