If you are using the latest version of opencv contrib and you get the error AttributeError: module 'cv2' has no attribute 'TrackerMOSSE_create' use cv2.legacy.TrackerMOSSE_create() instead of cv2.TrackerMOSSE_create()
@@proskurlandsky please uninstall opencv-python and the install the opencv-contrib-python package pip uninstall opencv-python pip install opencv-contrib-python it worked for me
in the whole youtube nobody is better than you when it comes to explanation. no one can explain each and every line you do sir. this indicates how much you like coding. thank you sir i learnt a lot from you.
wow!! awesome tutorial. Thank you very much for your explanation and the way of introducing the subject and all the useful tools for beginners like me!
For those who would have an error when initializing the tracker : use cv2.legacy.TrackerMOSSE_create() because now the trackers have been moved in the legacy class since OpenCV 4.5.1
if you get error " You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded. Restarting kernel... " 1. Make sure opencv-contrib-python-headless is installed (pip install opencv-contrib-python-headless) 2. opencv-python, opencv-python-headless and opencv-contrib-python-headless version has to be same (For check version just write pip list|grep opencv-python) In my case all version are 4.3.0.36 (pip install opencv-contrib-python-headless==4.3.0.36)
I have tried to install opencv-contrib-python but it has the same error and it can't. TrackMOSSE_crate () like this: tracker = cv2.TrackerMOSSE_crate () AttributeError: module 'cv2.cv2' has no attribute 'TrackerMOSSE_crate'
any course of computer vision include person tracking under multiple overlapping cameras , so that there id does not change when they move from one camera to other.
thanks so much i just wanna ask you when I wanna run the code I see the error module 'cv2.cv2' has no attribute 'TrackerMOSSE_create' I am using Spyder IDE and I cant solve it plz help me thanks in advance
I'm not using PyCharm but Sublime Text and CMD. I pip installed the opencv-contrib-python package which was successfully done, however the error is still there
I want to learn how to set up Robot arm performing orientation identification, pick and place cube object using artificial intelligence in webots simulation environment
tracker = cv2.TrackerMOSSE_create() AttributeError: module 'cv2.cv2' has no attribute 'TrackerMOSSE_create' I have installed opencv-contrib-python as first and I have installed opencv-python too. However, once I uninstall the opencv-python and keep the opencv-contrib-python. Then python compiler gives error about "You don't have cv2"... Do you know how to solve this issue? thank you.
hello please i have a question concerning filters (gaussian, median, bilateral and averaging) associated with OpenCV. I have seen some tutorials using gaussian blur for object detection i would like to know why this particular filter is used for object detection, why is it the best and what are the features that differ from other 3 filters that i have mentioned.
Median Filter is to remove Salt Pepper Noise Bilateral gives a painting feel. It uses weighted average of surrounding pixels. Guassian filter uses convolution . This means futher pixels get lower weights Averaging. uses single averaged value for all surrounding pixels. It depends on the situation . Guassian is good but it is slower than Averaging.
Dear Sir, I am following all your training videos. Excellent and easy to follow. I always get positive result too. There are many tranining videos available in youtube for the same subject. But your videos are the best and error free. Thank you very much sir. My request: Pls can you also make a traning video for car license plate recognition using TF? thanks in advance. Also pls provide your email sir.
Sir, this video helped me a lot. Thank you so much. I am using Spyder for Python. Where can I see the values of the x, y ,w and h in my window? PLease help me sir.
Can you save these selected object for tracking and reuse it without having to select it again? Perhaps set up a library of objects that can be reused as needed?
usually its detection and then tracking. so if tracking is lost detection can kick in again. The selected region could be saved but since tracking is sensitive to variance you might not get good results.
@@murtazasworkshop I'm trying to work on something similar, is there anything you can add might help me to take the first step in it? .. Thank you for your time.
Can you make a tutorial on Kalman Filters? Especially in object tracking for state estimation and in some cases, for the velocity estimation. The whole Computer Vision world, it seems, is looking out for the subject to be more implementable if clear. Would be grateful if you could do the honors :)
For some reason after I click "enter" when I select an object to track it gives me the error message for "cv.rectangle(img,(x,y),((x+w... (that thing)" that says "TypeError: function takes exactly 4 arguments (2 given)" how do I fix this?
Hi, thanks a lot for this tutorial, I am following exactly what you doing but when I draw the square on the object it keeps showing LOST status, I am using VS Code and I installed pip install opencv-contrib-python to my environment. what I am missing??
Trackermosse create not present in cv2 I am havin this error, tracKerMOSSE_create() attribute is not working. can anyone please help.. I have a project and i really need this.
sorry sir but the cv2.TrackerMOSSE_create() function is not working in other ide s. can you give an alternative? also a request to build a project on social distancing using opencv
And when I installed OpenCV-contrib-python for the first time, my video was not capturing and I got panicked. then uninstalled it and installed it again. then it worked. I don't know any other way to solve the issue. if you do, please let me know
i use win 10 and help me pls cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1267: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'
'cv2' has no attribute 'TrackerMOSSE_create' I got this type of error. installing the pip install opencv-contrib-python I install this library still get the same error so. please tell me what extra library can install
I am not able to add the OpenCV package because the plus sign isn't highlighted when I click "Python Interpreter." Also, can you make a video on tracking multiple objects at once?
People unfortunately can't help you with this as there's too many things that are a variable. Either google this, or to be safe, delete and reinstall the package to lastest
If you are using the latest version of opencv contrib and you get the error
AttributeError: module 'cv2' has no attribute 'TrackerMOSSE_create'
use
cv2.legacy.TrackerMOSSE_create()
instead of
cv2.TrackerMOSSE_create()
but now it has no module legacy
@@proskurlandsky please uninstall opencv-python and the install the opencv-contrib-python package
pip uninstall opencv-python
pip install opencv-contrib-python
it worked for me
in the whole youtube nobody is better than you when it comes to explanation. no one can explain each and every line you do sir. this indicates how much you like coding. thank you sir i learnt a lot from you.
When you get this error: OpenCV: camera failed to properly initialize!
Try changing cap = cv2.VideoCapture(1) to cap = cv2.VideoCapture(0)
You are really a savior for beginners like us, you provide us a headstart otherwise we had to bang our heads in long documents to get things done
Dear Murtaza, a very big thanks for your help! Your video is sharp and crystal clear.
Glad it helped
Perfect for what i need, good luck with the next videos!
Thank you
Simple but clear explanation. Thank you ☺️
You are welcome 😊
Good work ☺️, we are waiting about YOLOv3 🔥🔥🔥
Excellent Tutorial. Keep it up !!!
Great tutorial! Very simple and clear. Awesome man.
wow!! awesome tutorial. Thank you very much for your explanation and the way of introducing the subject and all the useful tools for beginners like me!
For those who would have an error when initializing the tracker : use cv2.legacy.TrackerMOSSE_create() because now the trackers have been moved in the legacy class since OpenCV 4.5.1
it doesn't work for me bro, still trying to find solution
Thanks bro, you are my hero .
thanks you open new goals to us
if you get error
" You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded. Restarting kernel... "
1.
Make sure opencv-contrib-python-headless is installed
(pip install opencv-contrib-python-headless)
2.
opencv-python, opencv-python-headless and opencv-contrib-python-headless version has to be same
(For check version just write pip list|grep opencv-python)
In my case all version are 4.3.0.36
(pip install opencv-contrib-python-headless==4.3.0.36)
I have tried to install opencv-contrib-python but it has the same error and it can't. TrackMOSSE_crate ()
like this:
tracker = cv2.TrackerMOSSE_crate ()
AttributeError: module 'cv2.cv2' has no attribute 'TrackerMOSSE_crate'
same, but I've spelled create correct lol
@@hridaanshugusain474 hi how about now, are you still have the same problem? ive just install opencv-contrib-python and it doesnt work
tracker = cv2.legacy.TrackerMOSSE_create()
i found on stack overflow
@@haniefknight ok i will try this. thank you
@@haniefknight this worked thank you
wonderful ! I love this - i didn't know opencv ad bui;t in trackers...your code is perfect..
Even after adding opencv-contrib-python package (version 4.5), no MOSSE tracker was found, only MIL and GOTURN. Anyone knows why?
change tracker = cv2.legacy_TrackerMOSSE.create()
this might help
@@anuraagsaxena7942 Thanks bro
@@anuraagsaxena7942 thanks for this, it worked for me
@@anuraagsaxena7942 thanks for this..it really helped. So what changes to be made if we are using another tracker?
@@anuraagsaxena7942 Thanks Bro , It's working
Thank you very much, very clear and with life example!
Thank You Good Sir. Very good tutorial, very helpful. Have a wonderful day!
Seriously, good work!!! This is a great intro.
Glad you like it!
Thank you very much for upload wonderful tutorials. Keep going
You are welcome 😊
Thank you so much sir!
This helps me a lot... 👍 Thank you!!!
Love your stuff! keep up the good work!!!
any course of computer vision include person tracking under multiple overlapping cameras , so that there id does not change when they move from one camera to other.
awesome tutorial for my plane crazy plane ciws tracking
thanks so much
i just wanna ask you when I wanna run the code I see the error
module 'cv2.cv2' has no attribute 'TrackerMOSSE_create'
I am using Spyder IDE and I cant solve it
plz help me
thanks in advance
Try
tracker = cv2.legacy.TrackerMOSSE_create()
and use only opencv-contrib-python library
thanks bhai
Your videos are awesome. I would like to request you to make a video on yolo detector combined with object tracker.
Thank you . I will look into it.
you've manage to do that ?
really useful tutorial, thank you!
It would. be useful for beginners to tell them where they could go if they get stuck (google, or documentation)
speaking of which, do you know why my external camera wouldn't pick up any feed besides the gray void of absolotly nothin?
Great and very detailed explanation. Thanks a lot
Thank you for your quality contributions!
Glad you like them!
I'm not using PyCharm but Sublime Text and CMD. I pip installed the opencv-contrib-python package which was successfully done, however the error is still there
Thanks! This was really informative
I would like to ask you for advice in case I needed the speed estimate of the moving object.
Thanks!
Great videos again and again! Thanks
Thank you. Great tutorial.
I want to learn how to set up Robot arm performing orientation identification, pick and place cube object using artificial intelligence in webots simulation environment
tracker = cv2.TrackerMOSSE_create()
AttributeError: module 'cv2.cv2' has no attribute 'TrackerMOSSE_create'
I have installed opencv-contrib-python as first and I have installed opencv-python too. However, once I uninstall the opencv-python and keep the opencv-contrib-python. Then python compiler gives error about "You don't have cv2"... Do you know how to solve this issue? thank you.
hello please i have a question concerning filters (gaussian, median, bilateral and averaging) associated with OpenCV. I have seen some tutorials using gaussian blur for object detection i would like to know why this particular filter is used for object detection, why is it the best and what are the features that differ from other 3 filters that i have mentioned.
Median Filter is to remove Salt Pepper Noise
Bilateral gives a painting feel. It uses weighted average of surrounding pixels.
Guassian filter uses convolution . This means futher pixels get lower weights
Averaging. uses single averaged value for all surrounding pixels.
It depends on the situation . Guassian is good but it is slower than Averaging.
Thank you for nice work,,, but please when I run the code it stuck and the camera did not update the view why did this happen?
cap = cv2.VideoCapture(0, cv2.CAP_MSMF)
Dear Sir, I am following all your training videos. Excellent and easy to follow. I always get positive result too. There are many tranining videos available in youtube for the same subject. But your videos are the best and error free. Thank you very much sir.
My request: Pls can you also make a traning video for car license plate recognition using TF? thanks in advance. Also pls provide your email sir.
Wonderful video. I am trying to make a motor move using the tracked object. How do you export the x,y,w,h ?
+1
hello.please can you enplane in video haw calcul speed of the cars
Can you please help me to find vision based vibration on any object using python
Is there a way to know the first frame at which the bbox starts moving?
Can you share the video you used to test?
The first frame is just an orange square. Then, after I press enter, it shows me the webcam video
Did you solve this problem?
Great thanks Sir! I have a question: how can I add a custom trained model to this code? can anyone help me? my own model is ready with yolov4.
Sir, this video helped me a lot. Thank you so much. I am using Spyder for Python. Where can I see the values of the x, y ,w and h in my window?
PLease help me sir.
some advice I would not recommend using cv2 to capture the screen use mss also I would try PyGLM or numpy for better performance .
Thanx for the advice. will try it out.
Thank you for this wonderful tutorial! However, the page for the code is no longer available :(
Hi sir u can label the names the tracked images so that will be much better any way this is also a superb tutorial
who are you mannn who are you awesome workss,ı really admire you
Thank you so much 😀
Sir, I would like some suggestion. How can we implement this if the object is moving and we are doing real time tracking?
Can you save these selected object for tracking and reuse it without having to select it again? Perhaps set up a library of objects that can be reused as needed?
usually its detection and then tracking. so if tracking is lost detection can kick in again. The selected region could be saved but since tracking is sensitive to variance you might not get good results.
If it was controlled with servo motors ...pan and tilt it would be awesome
ill look into that
I'm trying to work on something similar ..
@@murtazasworkshop I'm trying to work on something similar, is there anything you can add might help me to take the first step in it? .. Thank you for your time.
I am not getting the open-cv contrib, it always says not available even after downloading by PIP too
Can you make a tutorial on Kalman Filters? Especially in object tracking for state estimation and in some cases, for the velocity estimation. The whole Computer Vision world, it seems, is looking out for the subject to be more implementable if clear. Would be grateful if you could do the honors :)
Is it possible to do this using 2 cameras, perpendicular to each other, showing the XY coordinate for one and YZ on the other?
how do you install opencv2-contrib-pyhton on terminal?
just type "pip install opencv-contrib-pyhton" in your command prompt
For some reason after I click "enter" when I select an object to track it gives me the error message for "cv.rectangle(img,(x,y),((x+w... (that thing)" that says "TypeError: function takes exactly 4 arguments (2 given)" how do I fix this?
Hello sir. Sir how to detect any bird or any small object plzzz guide me
Hi, thanks a lot for this tutorial, I am following exactly what you doing but when I draw the square on the object it keeps showing LOST status, I am using VS Code and I installed pip install opencv-contrib-python to my environment.
what I am missing??
If I want to track objects in a video and make use of a detector such as YOLOv4, how can I go about it?
Trackermosse create not present in cv2
I am havin this error, tracKerMOSSE_create() attribute is not working.
can anyone please help..
I have a project and i really need this.
do you solved problem?
Kindly sir make video on gestures for mouse
Thank you sir.
great video as always
Thanks again!
It workn't. You put the tracker code outside the while loop so its just a picture with a rectangle on it
How did you solve this? So that there is an image(from the camera) at the start while initialising the tracking.
when you press enter it comes non frozen new screen
How would you track multiple objects?
This would be interesting to see.
how do we implement trackers into robotics? The output coordinates tell a robot arm to go to that position for example.
sorry sir but the cv2.TrackerMOSSE_create() function is not working in other ide s. can you give an alternative? also a request to build a project on social distancing using opencv
selectROI only gives me a black box to draw on. Even if I just select a black region is continues to show me a black frame.
Love your work. Can you share tracking with C++ as well
Hey !
How can i install the package that contains all the trackers on thonny python IDE because i am using a raspberry pi ?
This code isn't working window is freeze on the first frame.
It is suppose to freeze on the first frame so that you can select the object you want to track
@@murtazasworkshop No it continuously freezes the 1st frame.
@@Mark-Zuckerberg how did you fix it ??
were u able to resolve it?
Thanks for great project. But how to get cv2.selectROI while in the loop?
And when I installed OpenCV-contrib-python for the first time, my video was not capturing and I got panicked. then uninstalled it and installed it again. then it worked. I don't know any other way to solve the issue. if you do, please let me know
Thanks Pro!
For the same application can we have a circular tracker instead of a rectangular one? If so, how?
Hi, Is it possible to know all pixels of the detected object? because I want to change the object color after that.
Is its possible to calculate distance
using openCV???
hey thanks.
but if we have the same problem with the trackerCSRT_create but on spyder(anacondaà.
how can we solve it ?
Keep it simple:
x,y,w,h = bbox
You are the Best! Haha!
i use win 10 and help me pls cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1267: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'
'cv2' has no attribute 'TrackerMOSSE_create'
I
got this type of error. installing the pip install opencv-contrib-python I install this library still get the same error so. please tell me what extra library can install
The attribute moved to the legacy api, so in order to access it it has to be "cv2.legacy.TrackerMOSSE_create()" instead of "cv2.TrackerMOSSE_create()"
"Status: Tracking" shows when the tracker is working, but when it loses an object. Is the "status" changing?
Awesome keep going🔥🔥
But why did u delete arduino tutorial?
Thanx. They are not ready yet
@@murtazasworkshop
so when you finish them all u gonna upload them again?
hope so cuz those two videos were amazing tutorial to be honest❤️
@@twinklewolf6794 Yes
@@murtazasworkshop
Can't wait 🔥🔥🔥
Thanks for sharing but i m facing one issue, that it misses the target but still says tracking instead of lost? Why
great video! also, how could one track multiple objects?
can we use mobile camera instead of webcam
I am not able to add the OpenCV package because the plus sign isn't highlighted when I click "Python Interpreter." Also, can you make a video on tracking multiple objects at once?
thanks, where is this procects code
how to reset tracker init without restart program?
Video is perfectly made. But, I am still getting cv2 has no attribute 'TrackerMOSSES_create even after installing contrib python.?
People unfortunately can't help you with this as there's too many things that are a variable. Either google this, or to be safe, delete and reinstall the package to lastest
Also check if you're running a virtual environment, and what you have installed
pip freeze will tell you all the packages you have
can get x y z of center of the track box?
Can we make circle instead of box for tracking
I don't believe that option is available.
Doesn't this program determine the distance?