videocr/videocr
Yun 7f6881749f Add additional image processing
Ordered process:
1. dilation - thicken white portion of subtitles
2. resize - temporary hardcoded to 47% (assuming subtitles are 68 pixels in height)
3. apply hsv color mask - filter out non gray pixels and filter out pixels that are not bright enough
4. invert image - make it black text on white background
5. add border to top and bottom - assuming subtitles are cropped closely
2021-07-13 09:12:43 +02:00
..
__init__.py define module __init__.py 2019-04-28 17:31:43 +02:00
api.py move download_lang_data to utils.py 2019-12-15 20:56:09 +08:00
constants.py support combining multiple languages 2019-04-29 22:29:49 +02:00
models.py make sim_threshold adjustable through api 2019-04-29 03:50:06 +02:00
opencv_adapter.py add adapter for OpenCV 2019-12-15 21:38:17 +08:00
utils.py move util functions to utils.py 2019-12-15 21:38:48 +08:00
video.py Add additional image processing 2021-07-13 09:12:43 +02:00