If you are getting an error while installing requirement “lap==0.4.0” then try installing visual studio C++ complier as shown at 1:10:10. Let me know if that solves your issue.
i don't have this problem just with lap but also the specific version of opencv-python and ultralytics. I still can't solve it.pls i need some help cause this is my second course iwan not to skip too because of the same problem that i found with pycocotools
59:23 You can also get the classnames from the results variable: class_names = results[0].names print(class_names) The only difference is that it will be a dict with index keys as ID numbers and that's probably what you want but can be turned into a list with: class_names = results[0].names print(list(class_names.values()))
59:20 YOLO already have a name attribute: results = model.predict(stream=True, imgsz=512) # source already setup names = model.names for r in results: for c in r.boxes.cls: print(names[int(c)])
For anyone struggling with the requirements.txt, make sure you have Python 3.10 or above. I was trying to run it on Python 3.9, and it was saying there was some hardware error. I completely deleted and reinstalled python 3.10, and everything works perfectly. Besides that, this was a highly informative course on the YOLO algorithm and its applications. Thank you Murtaza.
This was the fix for me as well. I tried originally installed 3.12, and had tons of issues with the requirement packages. I even tried 3.11, and that was better, but still issues. Only after uninstalling everything and going with JUST 3.10, it worked!
You don't need to make 30 to 15 . You extract drawing line func. from second if loop and line will be there longer. 2:13:00 if limits[0] < cx < limits[2] and limits[1] - 30 < cy < limits[1] + 30: if totalCount.count(id) == 0: totalCount.append(id) cv2.line(img, (limits[0], limits[1]), (limits[2], limits[3]), (0, 255, 0), 5) Thank you for everything by the way.
fantastic work Murtaza, thank you! This made me think of autonomous drones: if you combine Yolo object detection with the Tello camera input and make it go forward as long as it detects objects in the room and stop it, when no longer detecting, you would have a sort of lidar for free...
I made it through your 4:33 hour course in about 4 weeks probably more. "Object Detection 101 Course - Including 4xProjects | Computer Vision" Most everything worked with very little debugging needed. Did not find your bus picture, but google has hundreds of pictures of kids getting on a bus and they all worked with your object detection programs. I started learning Python this year on a Raspberry Pi5 connecting to various projects on a breadboard. When I learned how far object detection has come, I jumped in and was happily learning youtube python some days 13 hours. It was making sence and hard to stop learning. My goal is to track the ISS and guide my telescope with results. Thanks again for a pleasant object detection and tracking experience. This is a 5 star course in my opinion.
Ow yeah i was waiting for this thank u very much and for people who coulnd't install lap library like me in chapter 7 murtaza install visual studio packets it will fix the lap library problem
Its was very helpful. Thank You Man. Im staisfed there is broccoli in classes because they are very helthy. btw. i found reasonable to set terminal shell to cmd.exe by default. Setting>Tools>Terminal > Shell path: switch to cmd.exe
Thank you, Murtaza Hassan, for sharing your knowledge and inspiring millions through your clear and impactful teachings in computer vision and robotics. Greetings to you from Tunisia!
Dude, i want an object detection / reader / scanner that works over a visor or glasses in real time. Could be very very basic at first but over time it would be an incredibly useful tool for the everyday human.
Hi . Can you please help me with the installation of the nvidia drivers because I am not able to install the nvidia drivers but have successfully installed both toolkit and cudnn. It's showing that the NVIDIA installer cannot continue because no nvidia GPU is detected on your system. This graphics driver could not find compatible graphics hardware.
This course help me for my learning project. ❤ Thank you sir. I need more specific counting for every class object. Could you make new video tutorials about it sir. Thank you again
How beautiful if I had seen your video earlier. I not only learned technology, but also practiced English. Thanks a lot for your efforts and I will continue to follow you.🥳
I would like to express my sincere thanks for your time, effort, and willingness to share your expertise with the online community. Your contributions have made a significant impact on my learning journey, and I am truly grateful for that. Once again, thank you for your exceptional work and for going above and beyond to educate and inspire others. I look forward to exploring more of your content in the future.,you are the best one
Hi . Can you please help me with the installation of the nvidia drivers because I am not able to install the nvidia drivers but have successfully installed both toolkit and cudnn. It's showing that the NVIDIA installer cannot continue because no nvidia GPU is detected on your system. This graphics driver could not find compatible graphics hardware.
@@Piyushraj-ry1kz what python version you have? i had issues while installing lap package and I downgrade the python version and it all works fine after that
Nice tutorial. The car count is not working 100% as expected - several vehicles change id number close to the red line. So there is a risk that a vehicle can be counted twice. You can see an example of this in the video around 2:17:29 where the red bus and the white truck beside it change ids just before the red line. Not sure if this can be corrected with the Sort parameters?
please any help regarding this error mgRegion = cv2.bitwise_and(img, mask) cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\core\src\arithm.cpp:214: error: -209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'cv::binary_op'
I don't know how to thank you but, you really helped me as I wanted a detailed tutorial on how to implement this step by step. Thank you, and keep up the good work.
Good work. Murtaza!. I would like to point one thing in car counter project. Instead of list for tracking counts, you might need to consider dictionary or a set for unique ids.
how can i download th requirement.txt ,from your website, its just showing to copy the text , i mean i couldn't able to download the zip file,do pls help anyone
in 26:42 you said -in your website there is a zip file . but i didn't find any zip file.please help me.also searched in object detection course.but nothing found to download.
Excellent video Murtaza. I think you should have figured out by now that in the x,y,w,h system, the x and y refer to the centre of the bounding box and not the top left. That's why you had the rectange starting from the centre of your torso in the initial webcam example with cvzone package.
In Minute 1:42:20 after trying to see the mask worked or not, does any one encountered this error imgRegion = cv2.bitwise_and(img, mask) cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\core\src\arithm.cpp:214: error: -209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'cv::binary_op'
Image and video sizes do not match. If you're using the car video make sure image is 1280x720. When you download the mask image from the course site it doesn't have correct size, you need to resize it manually or create a mask with correct size yourself.
hello Murtaza. firstly, great video. you have explained everything se well. in the poker hand project, you have labelled the Ace as 14, which will work fine for the upper straights. however for the straight Ace to 5, we need it as 1. so we need to write an extra line of code stating that if my list contains, 14, 5, 4, 3, 2 this is also a Straight and not a High Card. otherwise all's good. once again thank you for this amazing video!
@@deepankjadav3969 everything will run fine without lap Just follow exact steps shown in the video don't change a single thing in resource downloading
Can you help me with it? At 1:13:00 when installing CUDA. I have AMD GPU, but I guess thats not possible to use it. What can I do to run YOLO on my GPU?
Sir I learned a lot of things from this platform😍 and I also did many projects but now I want to implement these things (AI, ML, CV) on Django python web framework Please guide us how we do that in Django please please please make a course for that
Хочу сказать тебе что ты молодец. Я однажды делал видеопокер и отдаю себе отчёт что значит кодировать логику работы автомата. Мне понравился твой подход к решению задачи. Молодец!
If you are getting an error while installing requirement “lap==0.4.0” then try installing visual studio C++ complier as shown at 1:10:10.
Let me know if that solves your issue.
yes it's working thank you Murtaza
i don't have this problem just with lap but also the specific version of opencv-python and ultralytics. I still can't solve it.pls i need some help cause this is my second course iwan not to skip too because of the same problem that i found with pycocotools
Please pin this comment my brother, thank you for the fix.
thanks a lot it did help lots of love from Aligarh Muslim University Aligarh India
aayin@@sayyedasifrizvi3301
59:23 You can also get the classnames from the results variable:
class_names = results[0].names
print(class_names)
The only difference is that it will be a dict with index keys as ID numbers and that's probably what you want but can be turned into a list with:
class_names = results[0].names
print(list(class_names.values()))
Can you send video file link please
59:20
YOLO already have a name attribute:
results = model.predict(stream=True, imgsz=512) # source already setup
names = model.names
for r in results:
for c in r.boxes.cls:
print(names[int(c)])
Hi, just wanted to ask someone thing.
I have learnt concepts like cnn, lstm. Should I learn this or should I learn something else before this?
Can you send video file link please
For anyone struggling with the requirements.txt, make sure you have Python 3.10 or above. I was trying to run it on Python 3.9, and it was saying there was some hardware error. I completely deleted and reinstalled python 3.10, and everything works perfectly. Besides that, this was a highly informative course on the YOLO algorithm and its applications. Thank you Murtaza.
This was the fix for me as well. I tried originally installed 3.12, and had tons of issues with the requirement packages. I even tried 3.11, and that was better, but still issues. Only after uninstalling everything and going with JUST 3.10, it worked!
You don't need to make 30 to 15 . You extract drawing line func. from second if loop and line will be there longer. 2:13:00
if limits[0] < cx < limits[2] and limits[1] - 30 < cy < limits[1] + 30:
if totalCount.count(id) == 0:
totalCount.append(id)
cv2.line(img, (limits[0], limits[1]), (limits[2], limits[3]), (0, 255, 0), 5)
Thank you for everything by the way.
2:10:50 Please guide what should I do if I want to count each vehicle category separately. Like cars, bus, truck and motorbike...
fantastic work Murtaza, thank you! This made me think of autonomous drones: if you combine Yolo object detection with the Tello camera input and make it go forward as long as it detects objects in the room and stop it, when no longer detecting, you would have a sort of lidar for free...
what if drone sees mirror
You videos are super clean! Nice work.
I made it through your 4:33 hour course in about 4 weeks probably more.
"Object Detection 101 Course - Including 4xProjects | Computer Vision"
Most everything worked with very little debugging needed.
Did not find your bus picture, but google has hundreds of
pictures of kids getting on a bus and they all worked with your object detection programs.
I started learning Python this year on a Raspberry Pi5 connecting to various projects on a breadboard.
When I learned how far object detection has come, I jumped in and was happily learning youtube python some days 13 hours.
It was making sence and hard to stop learning.
My goal is to track the ISS and guide my telescope with results.
Thanks again for a pleasant object detection and tracking experience.
This is a 5 star course in my opinion.
Hello Murtaza
This is your best video.
You are a great discloser.
Thanks for everything
Amazing tutorial, vey well explained. Highly recommended
Ow yeah i was waiting for this thank u very much
and for people who coulnd't install lap library like me
in chapter 7 murtaza install visual studio packets it will fix the lap library problem
thanks!
May God bless you brother, thanks for the free and helpful content
had you encountered error installing lap package
This is the best course for beginner like me !
Awesome work ! Thanks 🙂
The tutorials, are awesome and easy for beginners to follow up!
Thanks a lot. A very good course. Spread knowledge is humanitary.
had you encountered error installing lap package
Its was very helpful. Thank You Man. Im staisfed there is broccoli in classes because they are very helthy. btw. i found reasonable to set terminal shell to cmd.exe by default. Setting>Tools>Terminal > Shell path: switch to cmd.exe
Wow kya baat ha. Lahore ka munda goron ka ustad ban gaya Mashallah 🎉
Thank you, Murtaza Hassan, for sharing your knowledge and inspiring millions through your clear and impactful teachings in computer vision and robotics. Greetings to you from Tunisia!
can you help me with downloading the drivers so that i can use gpu??
Am in the right place at the right time. Thanks. i will be very greatful if you do another video with tensorflow ❤️❤️
I was waiting so long for this tutorial thank you so much!
had you encountered error installing lap package
I love this. I think i can get a job finally with this
😂😂
Best learning from best teacher !!! you are amazing man !! how easily u have explained everything. Thank you so much !!!1
In this video full code is explained and given or we have to buy code
in 44:46, why there are two loops? the results will show all the detections in some frame, and the boxes will do the same right?
Dude, i want an object detection / reader / scanner that works over a visor or glasses in real time. Could be very very basic at first but over time it would be an incredibly useful tool for the everyday human.
Man you just made learn the things in 2 hours, I have long been waiting to explore Yolo and today just did it and everything worked perfectly.
Completed the project
What an amazing experience
Thanks a lot for making this incredible course
can you help me with downloading the drivers so that i can use gpu??
@arhamburad1036 sorry but I had used CPU
@@bakarali1818 why did you use cpu??
@@arhamburad1036 due to unavailability of gpu
Congrats for the project! Really awsome.
Hi . Can you please help me with the installation of the nvidia drivers because I am not able to install the nvidia drivers but have successfully installed both toolkit and cudnn.
It's showing that the NVIDIA installer cannot continue because no nvidia GPU is detected on your system.
This graphics driver could not find compatible graphics hardware.
This course help me for my learning project. ❤
Thank you sir.
I need more specific counting for every class object. Could you make new video tutorials about it sir. Thank you again
Murtaza you are doing a great job, its really helpfull for the beginners. To get an audio output what should we do with this coding?
How beautiful if I had seen your video earlier.
I not only learned technology, but also practiced English.
Thanks a lot for your efforts and I will continue to follow you.🥳
had you encountered error installing lap package
I would like to express my sincere thanks for your time, effort, and willingness to share your expertise with the online community. Your contributions have made a significant impact on my learning journey, and I am truly grateful for that.
Once again, thank you for your exceptional work and for going above and beyond to educate and inspire others. I look forward to exploring more of your content in the future.,you are the best one
amazing you are very professional,,and your teaching style is amazing I easily understand as a begginer😍🥰 ...
Thank you brother..
Thank you very much 👍😊
Thank you very much, your approach is exhaustive and very pedagogic.
Hi . Can you please help me with the installation of the nvidia drivers because I am not able to install the nvidia drivers but have successfully installed both toolkit and cudnn.
It's showing that the NVIDIA installer cannot continue because no nvidia GPU is detected on your system.
This graphics driver could not find compatible graphics hardware.
Due to which I am not able to proceed in this project.
thank you, hope you make more courses on YOLOv8 like this, wish you a lot of health and happiness
had you encountered error installing lap package
@@Piyushraj-ry1kz what python version you have? i had issues while installing lap package and I downgrade the python version and it all works fine after that
@@skripandthes Which version
@@SwastikSaha1204 Python 3.9.9, but you can ignore the lap package because it was never used in this course
The tutorial was excellent, and I gained a wealth of knowledge. I greatly appreciate your dedication and hard work.
Good day, were you able to install lap?
@@BigDaddyRenny Good day! Yes, I was able to install all dependencies.
@@bozok1903lap didn't install... I don't know why but I really want this to work.
Can I learn computer vision engineering from a laptop which has 4GB RAM and intel R HD 520 graphics card ?
@@Santhandharma I think yes , try the code but I think the difference that as an example - the first project - the video and detection will be slow .
Thank you so much it will help the students specially researchers
Nice tutorial. The car count is not working 100% as expected - several vehicles change id number close to the red line. So there is a risk that a vehicle can be counted twice. You can see an example of this in the video around 2:17:29 where the red bus and the white truck beside it change ids just before the red line. Not sure if this can be corrected with the Sort parameters?
please any help regarding this error
mgRegion = cv2.bitwise_and(img, mask)
cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\core\src\arithm.cpp:214: error:
-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'cv::binary_op'
@@mohamedelmalah6716 make sure the size of the mask and the video are the same (1280x720)
It's lucky for me to find this video!!! I can finish my homework with this video!
thank you very much for this course it is realy helpfull
great stuff man, cheers from Poland :)
Good Efforts.. Keep it up.. You are the champion
I don't know how to thank you but, you really helped me as I wanted a detailed tutorial on how to implement this step by step. Thank you, and keep up the good work.
Thanks so much. this was really educating and interesting.
Good work. Murtaza!. I would like to point one thing in car counter project. Instead of list for tracking counts, you might need to consider dictionary or a set for unique ids.
Congratulations!! Very good job!
how can i download th requirement.txt ,from your website, its just showing to copy the text , i mean i couldn't able to download the zip file,do pls help anyone
Just create a new file requirements.txt to that project folder and than copy paste
Hi Murtaza, I am unable to install the lap package and the error says its not a pip issue. A little help here please?
Also make videos on object segmentation and classification
Registration Done 👍
By the way wonderful course
It's really helpful. Thanks for the tutorial!
had you encountered error installing lap package
@@Piyushraj-ry1kz try before pip install wheel
in 26:42 you said -in your website there is a zip file . but i didn't find any zip file.please help me.also searched in object detection course.but nothing found to download.
Now, can you fix it?
@@ลัทธพลดัชถุยวัตร์ hey,is your model working with different pictues?
thank for the course ! very useful
02:47:47 Bicycle at top right
It's so Details, Thanks Bro ...
Very useful .Thank you sir
Thank a lot for the course!
Excellent video Murtaza. I think you should have figured out by now that in the x,y,w,h system, the x and y refer to the centre of the bounding box and not the top left. That's why you had the rectange starting from the centre of your torso in the initial webcam example with cvzone package.
In Minute 1:42:20 after trying to see the mask worked or not, does any one encountered this error
imgRegion = cv2.bitwise_and(img, mask)
cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\core\src\arithm.cpp:214: error:
-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op array' in function 'cv::binary_op'
did you find any solution?
did you fix the error? i have the same issue
Image and video sizes do not match. If you're using the car video make sure image is 1280x720. When you download the mask image from the course site it doesn't have correct size, you need to resize it manually or create a mask with correct size yourself.
Thanks for this great course! However, I fail at installing "lap version 0.4.0". Any ideas? I have Python version 3.10.9. Any help is appreciated.
I'm also facing the same issue..
Tried checking on google but didn't get issue resolved
Same here. Can't install "lap version 0.4.0" either.
same here, still have no idea how to fix it
Is there any solution for this? I am also facing the issue: requirement “lap==0.4.0” not satisfied
reinstall python to ver 3.9.9, worked like a charm, credit to Daniarfa
where can I find the images you set in 26:00
Murtaza, love your content, and now I just want to know more and more.
Excellent tutorial! 👍
i cant find images that you use at 26:50 please help me i couldn't find at your's website
hello Murtaza.
firstly, great video. you have explained everything se well.
in the poker hand project, you have labelled the Ace as 14, which will work fine for the upper straights.
however for the straight Ace to 5, we need it as 1.
so we need to write an extra line of code stating that if my list contains, 14, 5, 4, 3, 2 this is also a Straight and not a High Card.
otherwise all's good.
once again thank you for this amazing video!
Is the project built in video pytorch or Tensorflow based?
One more excellent project as usual....waiting for next
The amazing power of machine learning with the blooper@4:27:15 Now all you need is a program to find where a card is on your desk 😅
Goood Job, Thanks tooo much!
I Have a question sir, did you make cvzone library or not
I can't install with pip the last package (lap==0.4.0 )
error: metadata-generation-failed
Samer here
Thanks for the video
It helped me a lot
can you help me with downloading the drivers so that i can use gpu??
@arhamburad1036 used colab to use GPU. Not downloaded any drivers
thank you so much for this!!
thanks a lot for your effort. it is really great work, please keep going
@39:48 how to use not web cam instead IP Cam
Useful tutorial, thanks @murtaza. I truly wish the other courses were little inexpensive, so that we can learn from you.
Wow it's is amazing job 😮❤
Helpful. Thank you
In this complete code is explained or we have to buy code??
Please reply fast
Salam Brother... ❤ from Indonesia.
Not able to install lap = 0.4.0 . Anyone could help?
Did you figure it out?
@@deepankjadav3969i can fix it but i am facing a different problem
@@deepankjadav3969 everything will run fine without lap
Just follow exact steps shown in the video don't change a single thing in resource downloading
3:08
Good
Excellent tutorial ❤
Very useful lesson. 💯👍
Can you help me with it? At 1:13:00 when installing CUDA. I have AMD GPU, but I guess thats not possible to use it. What can I do to run YOLO on my GPU?
Hi, just wanted to ask someone thing.
I have learnt concepts like cnn, lstm. Should I learn this or should I learn something else before this?
Kindly make video on licence number plate recognition with already made model and custom model
I am using python 3.10 but I am not able to download lap library , can someone help me ? or maybe it is not just compatible?
Did you solve this? I'm stuck.
@@elfincredible9002 Idk dude, but I am chilling my life right now and passed college.
@@elfincredible9002 me too
Thank you sir it's amazing 🥰
imran khan in this video making me sooooooooo happyyyyyy😍😍🥰🥰
Nice very good job. Possible tracking players football match pose estimation ?
Awesome tutorial! tnx a lot
In this video full code is explained and given or we have to buy code
Hi There, I have problem of installing lap 0.4.0, hopefully someone can help. Much appreciated
hey, i solved this issue. go through chapter 7 in the video and install visual studio the same way he does. that fixed it for me!
Is people counter project work on real time cctv camera?
Are you using any pretrained model or not?
Sir I learned a lot of things from this platform😍 and I also did many projects but now I want to implement these things (AI, ML, CV) on Django python web framework
Please guide us how we do that in Django please please please make a course for that
had you encountered error installing lap package
you can to make available de file dot pt in Project 4 - Poker Hand Detector ?
Very good work
I hope for more :)
sir how to do Vehicle counting based on classification??
Хочу сказать тебе что ты молодец. Я однажды делал видеопокер и отдаю себе отчёт что значит кодировать логику работы автомата. Мне понравился твой подход к решению задачи. Молодец!
Thanks
such a great video.
Best video on yolo , awesome
Sir is it possible to controll my laptop operating system with hand gesture?
yes possible. Check out our mouse gesture control video.