all repos — videocr @ 7b607e5ca7b7d058e9f4cc108b6c75b9ef7e1ba0

Extract hardcoded subtitles from videos using machine learning

videocr/constants.py (view raw)

1import pathlib
2
3TESSDATA_DIR = pathlib.Path.home() / 'tessdata'
4
5TESSDATA_URL = 'https://github.com/tesseract-ocr/tessdata_fast/raw/master/{}.traineddata'
6
7TESSDATA_SCRIPT_URL = 'https://github.com/tesseract-ocr/tessdata_best/raw/master/script/{}.traineddata'