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.
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'
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
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.
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)
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!
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
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 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
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.
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.
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.
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?
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.
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.
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?
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
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.
@@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.
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'
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
'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
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
When you get this error: OpenCV: camera failed to properly initialize!
Try changing cap = cv2.VideoCapture(1) to cap = cv2.VideoCapture(0)
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.
Dear Murtaza, a very big thanks for your help! Your video is sharp and crystal clear.
Glad it helped
Good work ☺️, we are waiting about YOLOv3 🔥🔥🔥
Perfect for what i need, good luck with the next videos!
Thank you
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
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
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
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
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.
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)
Great tutorial! Very simple and clear. Awesome man.
Simple but clear explanation. Thank you ☺️
You are welcome 😊
Excellent Tutorial. Keep it up !!!
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!
Seriously, good work!!! This is a great intro.
Glad you like it!
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 ?
thanks you open new goals to us
wonderful ! I love this - i didn't know opencv ad bui;t in trackers...your code is perfect..
Love your stuff! keep up the good work!!!
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
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 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! This was really informative
I would like to ask you for advice in case I needed the speed estimate of the moving object.
Thanks!
Thank you very much for upload wonderful tutorials. Keep going
You are welcome 😊
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??
Thank you very much, very clear and with life example!
Thank you for your quality contributions!
Glad you like them!
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?
Wonderful video. I am trying to make a motor move using the tracked object. How do you export the x,y,w,h ?
+1
Thank You Good Sir. Very good tutorial, very helpful. Have a wonderful day!
Is there a way to know the first frame at which the bbox starts moving?
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.
Great videos again and again! Thanks
Sir, I would like some suggestion. How can we implement this if the object is moving and we are doing real time tracking?
Great and very detailed explanation. Thanks a lot
This helps me a lot... 👍 Thank you!!!
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.
Hi sir u can label the names the tracked images so that will be much better any way this is also a superb tutorial
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?
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
I am not getting the open-cv contrib, it always says not available even after downloading by PIP too
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?
who are you mannn who are you awesome workss,ı really admire you
Thank you so much 😀
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.
The first frame is just an orange square. Then, after I press enter, it shows me the webcam video
Did you solve this problem?
Thank you so much sir!
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?
Thanks for sharing but i m facing one issue, that it misses the target but still says tracking instead of lost? Why
For the same application can we have a circular tracker instead of a rectangular one? If so, how?
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.
how do you install opencv2-contrib-pyhton on terminal?
just type "pip install opencv-contrib-pyhton" in your command prompt
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?
Thank you for this wonderful tutorial! However, the page for the code is no longer available :(
it says NameError: name 'tracker' is not defined
"Status: Tracking" shows when the tracker is working, but when it loses an object. Is the "status" changing?
Is it possible to do this using 2 cameras, perpendicular to each other, showing the XY coordinate for one and YZ on the other?
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?
awesome tutorial for my plane crazy plane ciws tracking
Thank you. Great tutorial.
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
Love your work. Can you share tracking with C++ as well
Hi, Is it possible to know all pixels of the detected object? because I want to change the object color after that.
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.
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.
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.
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.
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 🔥🔥🔥
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
Can you please help me to find vision based vibration on any object using python
If I want to track objects in a video and make use of a detector such as YOLOv4, how can I go about it?
Why "success,imag=" not just "img="?
(I'm new to python)
Hey !
How can i install the package that contains all the trackers on thonny python IDE because i am using a raspberry pi ?
how do we implement trackers into robotics? The output coordinates tell a robot arm to go to that position for example.
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.
hello.please can you enplane in video haw calcul speed of the cars
AttributeError: module 'cv2.cv2' has no attribute 'TrackerMOSSE_create' ------can you help me please?
i have the same error, also I have opencv-contrib-python
Have you got this solved? I am encountering the same problem.
It is TrackerMOSSE_create(). You have missed () I guess
@@techpowercoders8009 Added the brackets, still the same problem. Any other ideas?
@@vs-cw1wc have you installed the Python- contrib module told in the video?
hey thanks.
but if we have the same problem with the trackerCSRT_create but on spyder(anacondaà.
how can we solve it ?
thanks bhai
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'
great video! also, how could one track multiple objects?
How would you track multiple objects?
This would be interesting to see.
hey how do i do the same but my source is a mp4 file.
Thanks Pro!
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
ı have a vs code, can ı use this, because ı still error like about 6:33
I don’t hava web camera and i want to use my phone’s camera how can i do that?
Thanks for great project. But how to get cv2.selectROI while in the loop?
can we use mobile camera instead of webcam
'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()"
Can you share the video you used to test?
great video as always
Thanks again!
Hi bro, how could I count no of object in the frame with tracking.
Is its possible to calculate distance
using openCV???
You are the Best! Haha!
Hello sir. Sir how to detect any bird or any small object plzzz guide me
Thank you, Sir
Doesn't this program determine the distance?
I follow ur code but when i run, it does not show video, just a capture or maybe first frame
Did you manage to solve this problem?