Closed HyperTesto closed 4 years ago
Thank you for trying! May I see the content of test.py? And which OS do you use?
This is the file content:
# print_sub.py
import videocr
if __name__ == '__main__':
print(videocr.get_subtitles("test.avi", lang='ita', sim_threshold=70, conf_threshold=65))
And this is my OS information:
NAME="Linux Mint"
VERSION="18.2 (Sonya)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 18.2"
VERSION_ID="18.2"
HOME_URL="http://www.linuxmint.com/"
SUPPORT_URL="http://forums.linuxmint.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/"
VERSION_CODENAME=sonya
UBUNTU_CODENAME=xenial
I will run a Linux Mint virtual machine and try to reproduce the bug.
In the mean time, could you convert the video into mp4 format using ffmpeg and try it again?
E.g. $ ffmpeg -i test.avi test.mp4
and then use test.mp4
in print_sub.py
. I would like to see if this is a video format problem.
Tried, same result T_T.
我也遇到同样的错误,我用的是MP4格式的视频。另外,国内是否是必须要梯子才可以用,我发现不挂梯子连接不了
需要安装Tesseract,安装方法 https://github.com/tesseract-ocr/tesseract/wiki
@apm1467 Any update on this issue, I am facing the same Python version -- 3.7.4 Tesseract version -- 3.04.01
The problem is now fixed.
Some exception occurred when applying OCR to video frames. Since the OCR runs in a multiprocessing pool, the exception was muted locally in the worker process and the user couldn't get any useful error message.
Now the actual exception message will be printed to stderr. It is likely a Tesseract installation error.
Sorry for my late reply. Please try the new version 0.1.6:
$ pip3 install -U videocr
Hi, i missed the notification on this... I'll try out in the next days. Thanks a lot!
Hello, i was trying to run videocr on a test avi file but i ran into this issue:
I'm not a python guy so i don't know where and how to get more information about this. Thank you, this library look very promising!