You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: fedora 31
Python: 3.7
代码:
from videocr import get_subtitles
if name == 'main': # This check is mandatory for Windows.
print(get_subtitles('22.mp4', lang='chi_sim+eng', sim_threshold=70, conf_threshold=65,use_fullframe=False))
执行后cpu满载运行,提示:
`Traceback (most recent call last):
File "t.py", line 8, in
print(get_subtitles('22.mp4', lang='chi_sim+eng', sim_threshold=70, conf_threshold=65))
File "/usr/local/lib/python3.7/site-packages/videocr/api.py", line 11, in get_subtitles
v.run_ocr(lang, time_start, time_end, conf_threshold, use_fullframe)
File "/usr/local/lib/python3.7/site-packages/videocr/video.py", line 52, in run_ocr
for i, data in enumerate(it_ocr)
File "/usr/local/lib/python3.7/site-packages/videocr/video.py", line 52, in
for i, data in enumerate(it_ocr)
File "/usr/local/lib/python3.7/site-packages/videocr/models.py", line 32, in init
block_num, conf = int(block_num), int(conf)
ValueError: invalid literal for int() with base 10: '-'
The text was updated successfully, but these errors were encountered:
OS: fedora 31
Python: 3.7
代码:
from videocr import get_subtitles
if name == 'main': # This check is mandatory for Windows.
print(get_subtitles('22.mp4', lang='chi_sim+eng', sim_threshold=70, conf_threshold=65,use_fullframe=False))
执行后cpu满载运行,提示:
`Traceback (most recent call last):
File "t.py", line 8, in
print(get_subtitles('22.mp4', lang='chi_sim+eng', sim_threshold=70, conf_threshold=65))
File "/usr/local/lib/python3.7/site-packages/videocr/api.py", line 11, in get_subtitles
v.run_ocr(lang, time_start, time_end, conf_threshold, use_fullframe)
File "/usr/local/lib/python3.7/site-packages/videocr/video.py", line 52, in run_ocr
for i, data in enumerate(it_ocr)
File "/usr/local/lib/python3.7/site-packages/videocr/video.py", line 52, in
for i, data in enumerate(it_ocr)
File "/usr/local/lib/python3.7/site-packages/videocr/models.py", line 32, in init
block_num, conf = int(block_num), int(conf)
ValueError: invalid literal for int() with base 10: '-'
The text was updated successfully, but these errors were encountered: