all repos — videocr @ fe68c35cc823b70f1f83c317c7b285e30d2568b6

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/main/{}.traineddata'
6
7TESSDATA_SCRIPT_URL = 'https://github.com/tesseract-ocr/tessdata_best/raw/main/script/{}.traineddata'