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
AttributeError: module 'cv2.cv2' has no attribute 'TrackerKCF_create' #15723
Comments
,these api are not found, that's why? python interface not support? |
if you use pip, please ONLY install opencv-contrib-python , not both. |
I have pip uninstall opencv-python, only the opencv-contrib-python, why still have not 'Tracker_create' interface. My device is MacOS 10.13.5.
>> import cv2
>> cv2.Tracker_create()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'cv2.cv2' has no attribute 'Tracker_create'
…------------------ 原始邮件 ------------------
发件人: "berak"<notifications@github.com>;
发送时间: 2019年10月17日(星期四) 下午4:24
收件人: "opencv/opencv"<opencv@noreply.github.com>;
抄送: "JackHay"<1339327861@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [opencv/opencv] AttributeError: module 'cv2.cv2' has no attribute'TrackerKCF_create' (#15723)
my opencv-python version is 3.4.5.20
opencv-contrib-python version is also 3.4.5.20.
if you use pip, please ONLY install opencv-contrib-python , not both.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thank you very much, problem have been solved. |
I'm using opencv 4.1.1 and encountered the same error... if anyone knows please help. |
pip3 install opencv-contrib-python This solved the error for me. |
You are really awesome dude! |
Hi, I need to import cv2 as well in a project and if i uninstall opencv-python, I can no longer import cv2. Keeping both opencv-python and opencv-contrib-python still shows the same error versions |
uninstall both ("opencv-python" and "opencv-contrib-python" ) and then install "opencv-contrib-python" |
I uninstall opencv-contrib-python==3.4.14.51 and reinstall it. Works for me! |
First, pip uninstall opencv-contrib-python, and then, pip install opencv-contrib-python. Its work fine for me and solved all related Tracker issues. |
Uninstalling the both opencv-python and opencv-contrib-python ==4.5.5.62 and re-installing only the contrib didn't solved the issue .. |
I just downgraded to opencv-contrib-python ==4.4.0.46 and it resolved it. |
uninstall opencv-python |
This worked for me. |
Yes,it also helps me.Thank you. |
Delete opencv-python and opencv-contrib. Then install opencv-contrib. This worked for me. |
Delete opencv-python and opencv-contrib. Then install opencv-contrib. tracker = cv2.legacy_TrackerMOSSE.create() this worked for me. |
No description provided.
The text was updated successfully, but these errors were encountered: