Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行错误 #17

Open
cjszhj opened this issue Feb 14, 2020 · 1 comment
Open

运行错误 #17

cjszhj opened this issue Feb 14, 2020 · 1 comment

Comments

@cjszhj
Copy link

cjszhj commented Feb 14, 2020

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: '-'

@cjszhj cjszhj changed the title 执行后没反应 运行错误 Feb 14, 2020
@usernamecannotbeempty
Copy link

This problem is resolved in this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants