@@parthverma7089 If you still care go to the link in the description under download code, and then enroll for the course and then go to the lesson that says "Code Files" and then download the files at the top, it might not notify you that you downloaded the files but they will go onto your system
If you would like to follow along, here are the prerequisites: 1. Pycharm IDE with opencv installed 2. Coco.names file 3. Config and Weights file 4. Test image or webcam All the files can be downloaded from the below link under the "Intermediate" section by the heading "Object Detection Opencv" www.murtazahassan.com/courses/opencv-projects
@@shaik.gulshanmohiddin5966 hey shaik, im having some issues with the installation, could you help me solve it? cannot import name 'model_lib_v2' from 'object_detection"
This is just gold. Thank you so much Murtaza I'm a broke student but eager to dive into Computer Vision and thanks to your altruism in making this content I am can to learn something that otherwise I would not be able to. Thank you
Awesome Sir ...... This the one of the best video i seen in youtube......you code are esay to understand.....thank so much sir... That One is really esay to use .....
Thanks a lot for the tutorial, as usual well explained and straight to the point. Can you please point me to where I can download all the files you have imported at the start of the lesson. I can't find them. Thanks
Excellent tutorial. I'm currently working on a project that requires an ai to be able to recognize 4 different objects and then determine their orientation orientation this helped a lot with recognition.
@@murtazasworkshop It indeed was. The big challenge is now how to determine how the object is oriented relative to the camera. Found a lot of papers online but no real explanation on how to do it.
I am getting this error: net = cv2.dnn_DetectionModel(weightsPath,configPath) AttributeError: module 'cv2.cv2' has no attribute 'dnn_DetectionModel' Do you know or anyone know how to solve this problem? thank you.
Hi I'm a computer engineering student from the Philippines, I am thankful for your videos this video helps me a lot and I am also currently enrolled at your website and I'm very thankful for this :)))))
SystemError: returned a result with an exception set Sir can you help me out with this? I've searched for this error in several places but can't seem to be of help... I'm using VS Code as a platform... Thank You
Does this work anymore? I'm getting an error for the following. net = cv2.dnn.DetectionModel(weightsPath, configPath) AttributeError: module 'cv2.dnn' has no attribute 'DetectionModel'
Dr. Murtaza, I need to know how to close up the 'complete' course in your website. At times, I play the video straight from youtube. when I log in in my account it is showing not complete. My question is, do I have to log in to continue the lesson? there is no option to 'continue' later...
Can I do this using a hikvision IP camera rather than webcam? If so then can you do a quick tutorial on this? Thanks for your hard work. It is much appreciated
sir please help, its showing Traceback (most recent call last): File "H:\object_detection\object_d.py", line 31, in cv2.putText(img,classNames[classId-1].upper(),(box[0]+10,box[1]+30), IndexError: list index out of range
Help pls. When it detects more than one object in gives out an error: cv2.putText(img, classNames[classId-1].upper(), (box[0]+50, box[1]+30), cv2.FONT_ITALIC, 1, IndexError: list index out of range Edited: in fact it shows few objects (with bad accuracy) for a few secs and then gives an error because classIds has index 90 and that is out of coco.names range
I am getting the same error but with numbers 44 and 77... which is definitely within the coco.names range.... for those having issues with over 90 being detected, make an entry in coco.names for that number and see if it fixes it??
Since your videos are always easy to follow and efficient, we are eagerly waiting sir. Thsnk you for working hard to bring excellent tutorials. Can you pls cover a subject how to control relay or any device from pyCharm running on windows? (Bcs of GPIO, I will be able to do in Raspberry)
Hi . There is a similar tutorial i have done that communicates with arduino using serial communication and controls a servo . You can check that. ruclips.net/video/TymXJVk-I6Q/видео.html
Hi Bro, I am running the code but after 5 to 10 sec i get an error Error: Traceback (most recent call last): File "e:\ObjectDetector\venv\main.py", line 30, in cv2.putText(img, classNames[classId-1].upper(), (box[0]+10, box[1]+30), cv2.FONT_HERSHEY_COMPLEX,1,(0,255,0)) IndexError: list index out of range [ WARN:0] global C:\Users unneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback What shoul i do to correct it?
This issue is answered here: stackoverflow.com/questions/67448987/indexerror-list-index-out-of-range-object-detection The problem is actually with when you are reading and stripping coco.names. Have a read of that link and it explains it well in the answers :)
@@madshyrup4226 did you fixed it? i also having same problem and could you tell that where did you det config and weight files i get it from a github page. thanks in advance
Thanks a lot for this great tutorial. I have watched couple of the videos here in RUclips, but no one make it straight forward like you. In line 22 why you didn't flatten the bbox when you use it with the zip function?
plzz help me out I am stuck with this error cv2.putText(img, classNames[classId - 1].upper(), (box[0] + 10, box[1] + 30), ~~~~~~~~~~^^^^^^^^^^^^^ IndexError: list index out of range
Sir I have a slight problem after following your tutorial on object detection. I am getting an out of index error while running it. Can anyone help me?
Guys i fixed the index error! add this to your code and delete old classNames. This is your new ClassNames. classNames = ['person','bicycle','car','motorcycle','airplane','bus','train','truck','boat','traffic light','fire hydrant','street sign','stop sign','parking meter','bench','bird','cat','dog','horse','sheep','cow','elephant','bear','zebra','giraffe','hat','backpack','umbrella','shoe','eye glasses','handbag','tie','suitcase','frisbee','skis','snowboard','sports ball','kite','baseball bat','baseball glove','skateboard','surfboard','tennis racket','bottle','plate','wine glass','cup','fork','knife','spoon','bowl','banana','apple','sandwich','orange','broccoli','carrot','hot dog','pizza','donut','cake','chair','couch','potted plant','bed','mirror','dining table','window','desk','toilet','door','tv','laptop','mouse','remote','keyboard','cell phone','microwave','oven','toaster','sink','refrigerator','blender','book','clock','vase','scissors','teddy bear','hair drier','toothbrush','hair brush']
This was great, so easy and quick. I watched so many other tutorials and there are always a million dependencies and errors, this was awesome, thanks!
how to download COCO dataset?
Peter, could you possibly help me with fixing my error?
i am having issues in getting the resource files such as ssd mobile net v3 and frozen inference....can u plz help me
@@parthverma7089 If you still care go to the link in the description under download code, and then enroll for the course and then go to the lesson that says "Code Files" and then download the files at the top, it might not notify you that you downloaded the files but they will go onto your system
8:48 "Sometime time it good to be lazy" quote of the day😁
I went on your website to see the weight files and couldn't find them. Where are they?
yes...I also couldn't find it
www.computervision.zone/topic/basic-code/
Those are paid 😥
@@am_editz9145 So this whole tutorial is a waste of time then lol wtf
Wonderful tutorial. Thank you so much for sharing your knowledge for free, you make the world a better place.
You are so welcome!
If you would like to follow along, here are the prerequisites:
1. Pycharm IDE with opencv installed
2. Coco.names file
3. Config and Weights file
4. Test image or webcam
All the files can be downloaded from the below link under the "Intermediate" section by the heading "Object Detection Opencv"
www.murtazahassan.com/courses/opencv-projects
" classIds, confs, bbox = net.detect(img,confThreshold=thres" this code getting error" what can i do
there is nothing inside "-----Intermediate----" section??
I can't find the files under the intermediate section. Can u please share them again? We love the video, it rocks!
The weights Are in the dataset folder downloaded from kaggle
classIds, confs, bbox = net.detect(img, confThreshold=thres)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
i am getting error
Sir can you put the links of the resources files in the description, please?
We cannot perform anything without these files.
Did u get those files??
@@mohammedkamran8559 did you get them?
@@mohammedazzan7529 ys
@@krizz5825 how?
Good Job Murtaza. Hello from Turkiye to Pakistan
Excellent tutorial.! Can you please make a tutorial on how to train Object Detection models using our own dataset?
towardsdatascience.com/creating-your-own-object-detector-ad69dda69c85 u can check here!!
Chekc the ai guy gethub he is explaining everything good but not perfect,
I need a video as you said to
@@shaik.gulshanmohiddin5966 hey shaik, im having some issues with the installation, could you help me solve it?
cannot import name 'model_lib_v2' from 'object_detection"
I gotta say, this video was just what I was searching for, great work man!!!
I have error in classIds,confs,bbox=net.detect(img,confThresholf=thres)
Assertion failed, !ssize.empty() in function
What should I do?
This is just gold. Thank you so much Murtaza I'm a broke student but eager to dive into Computer Vision and thanks to your altruism in making this content I am can to learn something that otherwise I would not be able to. Thank you
i am having issues in getting the resource files such as ssd mobile net v3 and frozen inference....can u plz help me
Awesome Sir ...... This the one of the best video i seen in youtube......you code are esay to understand.....thank so much sir... That One is really esay to use .....
Good Job from India to Pakistan!
(Others are saying you live in pakistan)
Great Tutorial Murtaza .from Iran to Pakistan
Excellent explanation. You made me to fell in love with openCV.
what means box[2] and box[3] ?
Thanks a lot for the tutorial, as usual well explained and straight to the point. Can you please point me to where I can download all the files you have imported at the start of the lesson. I can't find them. Thanks
Did u get them??
@@mohammedkamran8559 yes i need them'
This was super helpful! Your live coding is very impressive. Thanks!
Can you please give straight link to the dataset and the files you add to project at the start of video
thank you soo muchh!Very informative and detailed video
You sir, are a god amongst men.
Excellet tutorial! Can you please explain why we have set the input parameters(Size, Scale, Mean, SwapRB) to the net object?
i am having issues in getting the resource files such as ssd mobile net v3 and frozen inference....can u plz help me
I will definitely put this to use in my own project sometime! Thank you for making this tutorial.
Can i get your project name?
Thank you very Much. This has been very very helpful!
SystemError: returned a result with an error set
Can you please help me in this case.
I solved it by downloading same files as Murtaza used (there is a link in the descriptions)
I am not able to open any file from the link in the description, please help
@@pranavsundriyal1251 you need to enroll the course first
@@501ismail501 where
@@501ismail501 where is it man wtf>?????????
Excellent tutorial. I'm currently working on a project that requires an ai to be able to recognize 4 different objects and then determine their orientation orientation this helped a lot with recognition.
Glad it was helpful!
@@murtazasworkshop It indeed was. The big challenge is now how to determine how the object is oriented relative to the camera. Found a lot of papers online but no real explanation on how to do it.
@@murtazasworkshop Where can i download the coco dataset from? And the .pb file? please
I am also working on a project, will this program work on Arduino?please reply
I have error in classIds,confs,bbox=net.detect(img,confThresholf=thres)
Assertion failed, !ssize.empty() in function
What should I do?
"Speed and accuracy"
The mouse = Hot Dog
0:08
Assalamualykm bro yr videos help me alot ♥
Thanks Really Helpful
I love 🌹 your videos
Thanks so much for making this, I learn't a lot from you.
Thank you! I have a question. How can I get the config and weight files?
I have the same question
Follow the first link in the discription. And enrole it's free.
@@gabetower6165 The link in the course doesn't work anymore
What cam are you using?, Are you using a ESP32?
I am getting this error:
net = cv2.dnn_DetectionModel(weightsPath,configPath)
AttributeError: module 'cv2.cv2' has no attribute 'dnn_DetectionModel'
Do you know or anyone know how to solve this problem? thank you.
need weekly thrice videos like these please I am sharing this with all my friends
Thanks for the video! Love it! Can you do a tutorial on adding custom classes to the coco dataset for Object Detection with OpenCV Python? :)
i got an error, "line 31" List Out of The Range.
what should I do?
did you find the solution???? please help me
i also Get This Problem
SystemError: returned a result with an error set
how to slove it ...??
install package opencv-contrib-python and then it works
@@juanpablomarintrujillo6838 I solved it by downloading same files as Murtaza used (there is a link in the descriptions)
great tutorial from a great teacher
Incredible... Thanks for the effort and time
1:55 where did you get that stuff i'm really confused
you can find it on my website. Just follow the link in the description and enroll to get access.
This is my first video of its and it's the third time in watching it today so I pressed the big red button directly
Hi I'm a computer engineering student from the Philippines, I am thankful for your videos this video helps me a lot and I am also currently enrolled at your website and I'm very thankful for this :)))))
I have error in classIds,confs,bbox=net.detect(img,confThresholf=thres)
Assertion failed, !ssize.empty() in function
What should I do?
Check the VideoCapture if it is "1" make it "0"
Great video!! everything worked perfectly
can u pls explain how to do it
SystemError: returned a result with an exception set
Sir can you help me out with this? I've searched for this error in several places but can't seem to be of help...
I'm using VS Code as a platform...
Thank You
Does this work anymore? I'm getting an error for the following.
net = cv2.dnn.DetectionModel(weightsPath, configPath)
AttributeError: module 'cv2.dnn' has no attribute 'DetectionModel'
For real man you inspired many of my main projects on AI. Thank you
Dr. Murtaza, I need to know how to close up the 'complete' course in your website. At times, I play the video straight from youtube. when I log in in my account it is showing not complete. My question is, do I have to log in to continue the lesson? there is no option to 'continue' later...
I having a problem with cv2.dnn_DetectionModel(). Can you help me how to fix this?
i have the same problem
if u know help me
@@notkekoii yes me too, how i can fix it?
Where can we found the fronzen_interference_graph? Thank you
Can you do a video on how to train new objects from a collection of images? Your content is great!
i am having issues in getting the resource files such as ssd mobile net v3 and frozen inference....can u plz help me
Can I do this using a hikvision IP camera rather than webcam? If so then can you do a quick tutorial on this? Thanks for your hard work. It is much appreciated
How to connect the camera to the laptop? In order for it to access the program. And does this needs a microcontroller?
i dont understand why videos like this still get people who dislike it......
🎉🎉🎉 same feeling broo
love your work from bangladesh
Thank u verry much i love you❤️❤️
how to downloads the files?????
The files are not hyperlinked and i cannot download it...pls help
I guess you need to register for the course on the right top corner of the page where you have the Teddy Bear. It is free.
Register for what? Where? I found this video on RUclips.
@@kenengel620 The code is on the murtazahassan's website (link in descriptions) but you need to create an account and enroll the course to download
sir please help,
its showing
Traceback (most recent call last):
File "H:\object_detection\object_d.py", line 31, in
cv2.putText(img,classNames[classId-1].upper(),(box[0]+10,box[1]+30),
IndexError: list index out of range
same , did you find the fix?
Why do you put the wrong link for your code? Download code doesn't mean buy courses! :(
why I have a error: returned a result with an error set??
hello did you solve it?im getting the same error
I solved this problem by downloading the exact same files in the descriptions
@@501ismail501 Hi. How did you get them?
@@هاجرأسامة-و3ز I created an account on that website and I enrolled the course. Then the links appeared.
Request Tutorial:
- Detect rotation angle from template.
What is the algorithm used (cascade classifier etc.)? How does it detect objects?
Can it be used for a specific object? Thank you, good job.
it can be used for a specific object. For only one object you can create your own haar cascade or for a lot of object you can train your own dataset.
I have error in classIds,confs,bbox=net.detect(img,confThresholf=thres)
Assertion failed, !ssize.empty() in function
What should I do?
Help pls. When it detects more than one object in gives out an error: cv2.putText(img, classNames[classId-1].upper(), (box[0]+50, box[1]+30), cv2.FONT_ITALIC, 1,
IndexError: list index out of range
Edited: in fact it shows few objects (with bad accuracy) for a few secs and then gives an error because classIds has index 90 and that is out of coco.names range
same
is there any fix?
I am getting the same error but with numbers 44 and 77... which is definitely within the coco.names range.... for those having issues with over 90 being detected, make an entry in coco.names for that number and see if it fixes it??
which software you using? plz tell me @Murtaza's
Since your videos are always easy to follow and efficient, we are eagerly waiting sir. Thsnk you for working hard to bring excellent tutorials. Can you pls cover a subject how to control relay or any device from pyCharm running on windows? (Bcs of GPIO, I will be able to do in Raspberry)
Hi . There is a similar tutorial i have done that communicates with arduino using serial communication and controls a servo . You can check that. ruclips.net/video/TymXJVk-I6Q/видео.html
@@murtazasworkshop Thank you very much sir.
i am having issues in getting the resource files such as ssd mobile net v3 and frozen inference....can u plz help me
@@parthverma7089 did you get the solution? i too am having problems
classIds, confs, bbox = net.detect(img, confThreshold=thres) i am getting error over here
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^@@murtazasworkshop
Hi Bro,
I am running the code but after 5 to 10 sec i get an error
Error:
Traceback (most recent call last):
File "e:\ObjectDetector\venv\main.py", line 30, in
cv2.putText(img, classNames[classId-1].upper(), (box[0]+10, box[1]+30), cv2.FONT_HERSHEY_COMPLEX,1,(0,255,0))
IndexError: list index out of range
[ WARN:0] global C:\Users
unneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
What shoul i do to correct it?
any leads on this one?
Any fixes on this
kindly help
@@Ashwinisn242 any fix?
This issue is answered here: stackoverflow.com/questions/67448987/indexerror-list-index-out-of-range-object-detection
The problem is actually with when you are reading and stripping coco.names.
Have a read of that link and it explains it well in the answers :)
(-215:Assertion failed) !ssize.empty() in function 'cv::resize',anyone have solution for this
I have the same error
same error, anyone knows how to fix this? kindly help.
change cv2.VideoCapture(1) to cap = cv2.VideoCapture(0)
@@WARHERO388 thank you
@@WARHERO388 thank you
how to solved net = cv2.dnn_DetectionModel(weightsPath,configPath)
SystemError: returned a result with an error set
Have you fixed it? I'm having the same problem
@@madshyrup4226 did you fixed it? i also having same problem and could you tell that where did you det config and weight files i get it from a github page. thanks in advance
Yes plz tell having same problem wat to do
@@sakshamsinha5164 I think your weight file was broken. Download a new file
What is the extension of coco.name ??
For some reason, I can't download the files. help
you are BEST . tanx for sharing .
How to get the initial files you put in to project? Coco names and SSD files.
Good work keep it up bro.
Hello, sir a nice tutorial. but can ask if object detection can light LED after the detection is done? I'm trying to apply it in RPI and in real-time
Thanks for lecture, Did you run Pycharm to using code?
Can you do object detection with recorded video instead of the image?
Thanks a lot for this great tutorial. I have watched couple of the videos here in RUclips, but no one make it straight forward like you. In line 22 why you didn't flatten the bbox when you use it with the zip function?
Thanks for your great work! Your videos never disappoint...
Bro can u tell me how you have learned ML and AI, I mean from where or which sourcee
plzz help me out I am stuck with this error
cv2.putText(img, classNames[classId - 1].upper(), (box[0] + 10, box[1] + 30),
~~~~~~~~~~^^^^^^^^^^^^^
IndexError: list index out of range
I'm having trouble finding the ssd file, can anyone help me, please.
very helpful. Thank you so much
Sir after starting first 4 line it shows an error imshow() takes 1 positional arguments but 2 were given ....
Sir plz solve my problem
which function I need to add if I want to count how many times I lost my object from screen
Can you please make a video about scanning the area by LIDAR?
Sir
Ye
Ssd_mobile_v3_large_coco wali files kaha se import ke Hain
hi its good tutorual but can you tell me how I add anthor coco names like names that were not in coco name if I add that can be destroy the code?
Hi! it was such a great tutorial but you haven't attached the .pb and .pbtxt files link, it will be great if you can provide the link.
Sir I have a slight problem after following your tutorial on object detection. I am getting an out of index error while running it. Can anyone help me?
Guys i fixed the index error!
add this to your code and delete old classNames. This is your new ClassNames.
classNames = ['person','bicycle','car','motorcycle','airplane','bus','train','truck','boat','traffic light','fire hydrant','street sign','stop sign','parking meter','bench','bird','cat','dog','horse','sheep','cow','elephant','bear','zebra','giraffe','hat','backpack','umbrella','shoe','eye glasses','handbag','tie','suitcase','frisbee','skis','snowboard','sports ball','kite','baseball bat','baseball glove','skateboard','surfboard','tennis racket','bottle','plate','wine glass','cup','fork','knife','spoon','bowl','banana','apple','sandwich','orange','broccoli','carrot','hot dog','pizza','donut','cake','chair','couch','potted plant','bed','mirror','dining table','window','desk','toilet','door','tv','laptop','mouse','remote','keyboard','cell phone','microwave','oven','toaster','sink','refrigerator','blender','book','clock','vase','scissors','teddy bear','hair drier','toothbrush','hair brush']
@@yasntrktr OMG you saved me bro, thanks
@@victoralonso272 you are welcome!
dir, please tell us ,the method used is machine learning or transfer learning?? please reply fast.
Can we improve the model's accuracy!?
this script not using tensorflow ,is it?
How can I Apply this object detection model on a reception robot and detect the floor to be able to walk and avoid objects ?? Any idea :) Thanks
It's work! thanks a lot!!!
thank you the video. I wonder where we train the model?
permisiion to learn sir. thank you
what is the difference between your method and tensorflow?
Thank you for sharing this but can you also show how you trained it to detect images and then classify them?
where I can get coco datasets, weights, and config files???
can anyone please help me?
Merciiiiii pour votre effort
Interesting cant wait!
where are you getting the coco.names file from? I cant locate your files directly from the link you have provided in the video desciption.
Follow the link in the description and enroll in the course at the top of the page to get access.
Is there a link to where we can get the files you used???