all repos — videocr @ 45b7ff52ce53cdb2f1468f7b84c5bc8ff8bb6c87

Extract hardcoded subtitles from videos using machine learning

videocr/constants.py (view raw)

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