jeank93 / Simple-ocr-hardsubs

Extract hardsub using InpaintDelogo and then ocr using Cloud Vision API from gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple OCR Hardsubs


--> Extract hardsub to images using InpaintDelogo
--> detect text area using Cloud Vision API and clean images
--> Ocr using Cloud Vision API

Setup

Usages

Drop videos to create_avs_script.py -> create avs script

Drop folder to gg_clean_image_text.py -> clean images

Drop folder to ocr gg seperate image.py -> OCR

Run create srt from txt files.py -> Make srt files (it's remove some japanese lines)

You can change parameters by editing python script.

😸

About

Extract hardsub using InpaintDelogo and then ocr using Cloud Vision API from gg

License:GNU General Public License v3.0


Languages

Language:Python 100.0%