videocr:使用机器学习从视频中提取硬编码字幕

时间:2021-05-04 18:33:10
【文件属性】:
文件名称:videocr:使用机器学习从视频中提取硬编码字幕
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-04 18:33:10
Python 录像机 使用带有Python的 OCR引擎从视频中提取硬编码(刻录的)字幕。 输入带有硬编码字幕的视频: # example.py from videocr import get_subtitles if __name__ == '__main__' : # This check is mandatory for Windows. print ( get_subtitles ( 'video.mp4' , lang = 'chi_sim+eng' , sim_threshold = 70 , conf_threshold = 65 )) $ python3 example.py 输出: 0 00:00:01,042 --> 00:00:02,877 喝 点 什么 ? What can I get you? 1 00:00:03,044 --> 00:00:05,463
【文件预览】:
videocr-master
----Pipfile(226B)
----LICENSE(1KB)
----Pipfile.lock(8KB)
----setup.cfg(40B)
----setup.py(951B)
----.gitignore(2KB)
----README.md(4KB)
----videocr()
--------constants.py(260B)
--------video.py(4KB)
--------models.py(3KB)
--------utils.py(1KB)
--------opencv_adapter.py(382B)
--------__init__.py(56B)
--------api.py(791B)

网友评论