all repos — videocr @ c63e5086236df93dc8e668dd0e5935532a519a6c

Extract hardcoded subtitles from videos using machine learning

update README
Yi Ge me@yige.ch
Wed, 01 May 2019 05:43:59 +0200
commit

c63e5086236df93dc8e668dd0e5935532a519a6c

parent

eb29dd4d909e976eefe3b34569500ae5976ab2bb

1 files changed, 6 insertions(+), 6 deletions(-)

jump to
M README.mdREADME.md

@@ -67,18 +67,18 @@

## API ```python -videocr.get_subtitles( - video_path: str, lang='eng', time_start='0:00', time_end='', - conf_threshold=65, sim_threshold=90, use_fullframe=False) +get_subtitles( + video_path: str, lang='eng', time_start='0:00', time_end='', + conf_threshold=65, sim_threshold=90, use_fullframe=False) ``` Return the subtitles string in SRT format. ```python -videocr.save_subtitles_to_file( - video_path: str, file_path='subtitle.srt', lang='eng', time_start='0:00', - time_end='', conf_threshold=65, sim_threshold=90, use_fullframe=False) +save_subtitles_to_file( + video_path: str, file_path='subtitle.srt', lang='eng', time_start='0:00', time_end='', + conf_threshold=65, sim_threshold=90, use_fullframe=False) ``` Write subtitles to `file_path`. If the file does not exist, it will be created automatically.