Object Detection using OpenCV | Python | Tutorial for beginners 2020

This video contains a stepwise implementation of python code for object detection based on the OpenCV library.
The following are the list of contents you will find inside the video.
1) basic understanding of object detection and image classification
2) installation of necessary libraries
2) line by line implementation for object detection using OpenCV
a) Single Image
b) Video.mp4
c) Live Webcam
List of labels to download
github.com/pjreddie/darknet/b...
Configuration file
gist.github.com/dkurt/54a8e8b...

Пікірлер: 407

  • @NoorainRazaEC
    @NoorainRazaEC Жыл бұрын

    No one on you tube do this project for biggener level , but you did in perfect manner Sir Thank you So much Sir.

  • @chilukproducoes
    @chilukproducoes Жыл бұрын

    TNice tutorials is exactly what I needed to understand the UI. Great tutorial!

  • @madarbakushussain758
    @madarbakushussain7582 жыл бұрын

    The best explained video for object detection I've encountered so far!! Keep it up Bro

  • @sudeep003gowda
    @sudeep003gowda2 жыл бұрын

    You explained it very well. You made my day . I am so happy that I had learnt something new.

  • @nasim3269
    @nasim32693 жыл бұрын

    Thank you very much sir, this was just the perfect introduction t actually implementing computer vision!

  • @colsoyeti1
    @colsoyeti13 жыл бұрын

    Thank you for the expertly presented tutorial and demonstration.

  • @Raini41
    @Raini413 жыл бұрын

    the best video so far and help me a lot. thank you.

  • @weixinteh7075
    @weixinteh70753 жыл бұрын

    This is the most selfless video for object detection have every seen! the steps by steps provided clearly and most important WORKING! it is really helpful for a beginner like me. Thanks author!! You save my life!

  • @TOI700e13

    @TOI700e13

    2 жыл бұрын

    Hi it's only detecting person even if it is a car in VideoCapture .it's all good in img detection but the only problem is video object detection. could you please share your code if you've done it

  • @BruceWayne-xq7bb

    @BruceWayne-xq7bb

    2 жыл бұрын

    bro, can u give the graph of deep learning architecture? u did not provide that link

  • @hackercop
    @hackercop3 жыл бұрын

    Have just finished this. Thanks very much for making it. Have liked and subscribed!

  • @bhoomikamj7887

    @bhoomikamj7887

    Ай бұрын

    Heyyy..i didn't find frozen_inference_graph.pd after downloading the config file...can you please help!

  • @connectrRomania
    @connectrRomania Жыл бұрын

    Simple. And clear tuto thank you so much

  • @karthikeyaanar
    @karthikeyaanar3 жыл бұрын

    Thank you so much for your effort. Really helpful 👍🏽🙏🏼🙌🏽

  • @teetanrobotics5363
    @teetanrobotics53633 жыл бұрын

    Amazing tutorial.Thanks Mate

  • @Radi0he4d1
    @Radi0he4d1 Жыл бұрын

    I need to put together a script that copies images containing only certain objects. I tried looking for tutorials, but all of them are hellbent on teaching people how to train AI to tell apart dogs and fish. All I needed was to be spoonfed on how to use a pre-made model. Thank you so much.

  • @md.sahilansari5596
    @md.sahilansari55969 ай бұрын

    Really that details hits different

  • @mohamedgamer6877
    @mohamedgamer6877 Жыл бұрын

    So informative, thanks a lot!

  • @DassaBanger
    @DassaBanger2 жыл бұрын

    Amazing video. Great job

  • @SteelersFans99
    @SteelersFans993 жыл бұрын

    Fixed the problem with the bounding boxes: Replace “img” with “frame” in: cv2.rectangle(img,boxes,(255, 0, 0), 2) cv2.putText(img,classLabels[ClassInd-1] ......., thickness=1) Now it should work and display bounding boxes in the video! Great video! Very helpful!

  • @BruceWayne-xq7bb

    @BruceWayne-xq7bb

    2 жыл бұрын

    Hey, im getting 'name cv2 is not defined' . How to correct the error

  • @kanawadeatharva7705

    @kanawadeatharva7705

    2 жыл бұрын

    @@BruceWayne-xq7bb if you are getting error like module not found try to check if opencv is installed or not then just try this in cmd (pip install opencv-python)

  • @mohammedazzan7529

    @mohammedazzan7529

    Жыл бұрын

    @@kanawadeatharva7705 hey bro you got the code in this video?

  • @kanawadeatharva7705

    @kanawadeatharva7705

    Жыл бұрын

    @@mohammedazzan7529 yeah!!!

  • @deepibalachandran9956

    @deepibalachandran9956

    8 күн бұрын

    @@kanawadeatharva7705 SEND CODE FOR THIS SIR

  • @user-lj6kw7my6v
    @user-lj6kw7my6v Жыл бұрын

    Thank you so much sir from the bottom of my heart 💖.......it helped me a lot in my project

  • @sangeetagarg239
    @sangeetagarg2393 жыл бұрын

    great job, Could you please teach me how a new dataset is labelled and implementation of all the approaches of object detection. As I am new to this area. I liked the way you described.

  • @gowthamvignesh5802
    @gowthamvignesh5802 Жыл бұрын

    Nice video man ,I liked it

  • @lyndawakoli1596
    @lyndawakoli15962 жыл бұрын

    YOU SAVED ME ALOT ON MY FINAL YEAR PROJECT

  • @vigneshs1620

    @vigneshs1620

    2 жыл бұрын

    Hi ma'am.i also stuck in last stage. Attribute error :tuple not have attributes flatten. Plz help .its also my final year project

  • @mohammedazzan7529

    @mohammedazzan7529

    Жыл бұрын

    hello can you send me the code please?

  • @prarthana_bhuyan
    @prarthana_bhuyan3 жыл бұрын

    Thanks for teaching such complicated concept in simple words. Kindly guide me if we can integrate hardware like LED etc to such projects after detecting a specific object in real time.

  • @alifurkanfindik2966
    @alifurkanfindik2966 Жыл бұрын

    my friend it was a very good video👌😀

  • @prashantrai5102
    @prashantrai51022 жыл бұрын

    thanku for the wonderful explaination

  • @rabirabail752
    @rabirabail7523 жыл бұрын

    It's really helpful

  • @hieutle
    @hieutle2 жыл бұрын

    what a absolute legend!

  • @hieutle

    @hieutle

    2 жыл бұрын

    @@refrefwgwgwegew cap.set(3, width) and cap.set(4, height) whereas width and height is your preferred resolution

  • @hieutle

    @hieutle

    2 жыл бұрын

    @@refrefwgwgwegew No. cap.set(3, width) where width is a number and cap.set(4, height) where height is a number. Try cap.set(3, 512) and cap.set(4, 384)

  • @vijaydattu709
    @vijaydattu7093 жыл бұрын

    Thank you so much.well explained.

  • @refrefwgwgwegew

    @refrefwgwgwegew

    2 жыл бұрын

    hi willing to help me with my code? I seem to get a different resolution of my video than the original...

  • @EstebantabaresML
    @EstebantabaresML3 жыл бұрын

    Great video

  • @codetackle9662
    @codetackle96623 жыл бұрын

    thank you sir it very helpful for me

  • @pudinanno
    @pudinanno3 жыл бұрын

    Thank you so much, explained everything very well........... i have worked on my own video and its working very nicely.

  • @pudinanno

    @pudinanno

    3 жыл бұрын

    how do i calculate the accuracy of prediction of our object detection.

  • @pudinanno

    @pudinanno

    3 жыл бұрын

    i have also calculated the confidence............by which it shows like for "person "-70%....if i want to do more analysis then what can i do and how to do that

  • @titashchowdhury441

    @titashchowdhury441

    2 жыл бұрын

    Can u share the link of the frozen model

  • @BruceWayne-xq7bb

    @BruceWayne-xq7bb

    2 жыл бұрын

    @@pudinanno bro can u shar link of the frozen model

  • @pranavgupta9015
    @pranavgupta90153 жыл бұрын

    Hi, sir I really appreciate your detailed explanation and it's very easy to understand, there is a mismatch in labels and the pre-trained model. It took me some time but while classifying the images the model predicts the label 'fire hydrant' at position 11 and 'stop sign' at position 13, whereas in the labels list the 'stop sign' comes just after the 'fire hydrant'. How can we solve this problem?

  • @pIbrarBabar
    @pIbrarBabar Жыл бұрын

    Excellent...!

  • @Axio95
    @Axio953 жыл бұрын

    very informative video and i learnt very much from this , if you could post more tutorials about deep learning and explainations will be helpful.

  • @Axio95

    @Axio95

    3 жыл бұрын

    hi could you tell like what changes i need to make if i want to add new class files such as chair , pen , phones etc . for the real time web cam detection?

  • @umairmughal0001
    @umairmughal00013 жыл бұрын

    Can you please teach how to features analysis using deep learning techniques? Your videos are very helpful to us. Thank you :)

  • @ShoaibKhan-ec6fh
    @ShoaibKhan-ec6fh3 жыл бұрын

    help full👍👍

  • @renzomontesa2088
    @renzomontesa20883 жыл бұрын

    Nice work bro

  • @PankajsinghNegi-rs1wz
    @PankajsinghNegi-rs1wz Жыл бұрын

    thank u sir for this tutorial

  • @mojojojo9121
    @mojojojo91212 жыл бұрын

    thank you so much! this was a really great learning experience!!

  • @abhi9.T
    @abhi9.T Жыл бұрын

    Thank you sir

  • @riyushachannel4761
    @riyushachannel47612 жыл бұрын

    Thanks bro it work 👍🏻, (auto subscribe)

  • @dhirajb9005
    @dhirajb90052 жыл бұрын

    I like your video.......

  • @vigneshkumars8517
    @vigneshkumars8517 Жыл бұрын

    Thank you sir!!!

  • @kupolusus
    @kupolusus2 жыл бұрын

    so helpful video

  • @lavanya2kowmar
    @lavanya2kowmar3 жыл бұрын

    Thank you so much for this tutorial, it helped me a lot, I have a doubt, how do we know the values to set up the configuration

  • @ozkanuysal1263
    @ozkanuysal12633 жыл бұрын

    perfect.

  • @roitai-dev
    @roitai-dev2 жыл бұрын

    Thank you Teacher

  • @Fatimafatima-jd5ms
    @Fatimafatima-jd5ms3 жыл бұрын

    Good job

  • @rahulsatav2247
    @rahulsatav22473 жыл бұрын

    Thanku sir.. ✌️❤🤗😇

  • @adityapatil1839
    @adityapatil1839 Жыл бұрын

    bhai thanks yaar !!!

  • @unknown-bm9pf
    @unknown-bm9pf2 жыл бұрын

    Thank you ☺️

  • @kavinyudhitia
    @kavinyudhitia Жыл бұрын

    nice, thanks!

  • @AbhishekSawant-yw7mu
    @AbhishekSawant-yw7mu3 жыл бұрын

    Thanks a lot man !!!

  • @somashekarswamy8509

    @somashekarswamy8509

    3 жыл бұрын

    where can i get information abt mobilenetv3 pls guide

  • @Cool-rb8nu
    @Cool-rb8nu3 жыл бұрын

    So good

  • @mohanbansal959
    @mohanbansal9593 жыл бұрын

    Nice video, Everything is very clear. Only one doubt, how can we export the frozen inference graph? It would be better if you share the link for the frozen inference graph file. Thanks

  • @pragyavashishtha8983

    @pragyavashishtha8983

    Жыл бұрын

    Same doubt.. Graphs were not there??

  • @zunich9177
    @zunich91773 жыл бұрын

    KEEP IT UP

  • @cookwithstyle6286
    @cookwithstyle62863 жыл бұрын

    Helpful

  • @albertbenedict
    @albertbenedict3 жыл бұрын

    quick question, what if the frame and classes doesnt show in my video/webcam? is there anything that i can do to fix that?

  • @emmajanemackinnonlee
    @emmajanemackinnonlee Жыл бұрын

    given it's now 2022, would you suggest a different model that we should use? is this one outdated? or still the same one is good?

  • @islamicshorts50611
    @islamicshorts506113 жыл бұрын

    awesome

  • @crazyworldddar9092
    @crazyworldddar90923 жыл бұрын

    Gud job

  • @shaheenarana5710
    @shaheenarana57103 жыл бұрын

    Great

  • @mairarafiquerafiquemr9163
    @mairarafiquerafiquemr91633 жыл бұрын

    Nyc geeat

  • @HKIIIVal
    @HKIIIVal2 жыл бұрын

    This is a great video i love it, but i have a question, can you teach me how to count how many person or car in the video? like i need a counters for data also

  • @gursehajsinghmehta7099
    @gursehajsinghmehta70992 жыл бұрын

    Sir i cant find that particular stock footage that you used ,can you link it here.

  • @astronaut4229
    @astronaut42293 жыл бұрын

    Thank you for the video! It was really helpful, but can you send us a link to the code? I'm looking forward to more of your videos!

  • @Belyrical
    @Belyrical3 жыл бұрын

    👍👍👍

  • @mamoonst7195
    @mamoonst71953 жыл бұрын

    SIr I am working on a project which is to detect cotton using OPENCV Res Pi, Sir as the cotton data set is not available, is it possible to use a google image of any cotton to detect our cotton ball using HSV? Please reply.

  • @robirobi9624
    @robirobi96243 жыл бұрын

    Nice

  • @fzr1434
    @fzr14343 жыл бұрын

    Wow

  • @Alpha-hj2ss
    @Alpha-hj2ss3 жыл бұрын

    cv2.imshow('Object Detection Tutorial',frame) I got an error here. Does the quote name should be unique?

  • @ChirathLK

    @ChirathLK

    3 жыл бұрын

    you have to run the whole code with the config files

  • @user-ek9ho1ny8d
    @user-ek9ho1ny8d2 жыл бұрын

    That's a nice video, but how can I do the same using cv2 but for custom dataset? Change the num of classes and make the model detect the ones I've set?

  • @vaishnaviwaddepalli3797
    @vaishnaviwaddepalli37973 жыл бұрын

    thnak you

  • @jatin9711
    @jatin9711 Жыл бұрын

    Sir can you please tell us if we want to increase that Labels dataset i.e want to include more things than how we will do that

  • @Happy_Kannadiga
    @Happy_Kannadiga3 жыл бұрын

    sir where can i find frozen interference graph pb

  • @wonderman2864
    @wonderman28643 жыл бұрын

    Hello Sir, first of all you did a very nice job with easy explanation! Now I found some errors while detecting objects in real-time mode. For instance, phone is detected as a sink, scissors and the chair as a toilet or some kind of staffs. So how can I improve the accuracy of object detection in real time mode? In my case, it is perfectly detecting the person only. Thank you in advance :)

  • @Its_Ines

    @Its_Ines

    2 жыл бұрын

    me too same Pb

  • @user-cq1gf8je7l

    @user-cq1gf8je7l

    Жыл бұрын

    feed the model with more data

  • @jadavpur4
    @jadavpur43 жыл бұрын

    Hi... Thank you for the tutorial.. It's impressive. I have one question. Can we make the animation of moving objects a function of time? the program will run and continuous animation will run??? Thank you

  • @jadavpur4

    @jadavpur4

    2 жыл бұрын

    @@heribertojuarez6046 Yes.. I make the animation of moving objects... Thank you very much..

  • @refrefwgwgwegew
    @refrefwgwgwegew2 жыл бұрын

    Hi sir, 1) my real time video doesn't capture the whole video. Any ideas on how to get the whole video with detection instead of a screen where the video is only partially visible. 2) the video window doesnt disappear when I stop the jupyter program. I hope you can give us an update. Amazing video!

  • @RAZONEbe_sep_aiii_0819
    @RAZONEbe_sep_aiii_08193 жыл бұрын

    can you please share the whole code which you just implemented on screen using JN? I will be glad.

  • @ViralVideos.93
    @ViralVideos.932 жыл бұрын

    Sir in this project how we can add abnormalities part like if two persons are fighting or person is holding nife ,or we can say road accident then how we can show that

  • @huzaifakhan5024
    @huzaifakhan50243 жыл бұрын

    👍👍

  • @nosheenwaheed4022
    @nosheenwaheed40223 жыл бұрын

    😍😍😍

  • @norivlog159
    @norivlog1593 жыл бұрын

    👍

  • @hemanthar8363
    @hemanthar83633 жыл бұрын

    Can you help me with the voicefeedback for the output .

  • @adityatiwari2325
    @adityatiwari23253 жыл бұрын

    the final video with all the boxes and names does not open up that is after typing the last code and pressing shift enter nothing happens. please help!!

  • @muhammadzubab4223
    @muhammadzubab42233 жыл бұрын

    Good

  • @subohisohiii9785
    @subohisohiii97853 жыл бұрын

    💖

  • @SteelersFans99
    @SteelersFans993 жыл бұрын

    Thank you for the great video!! I ran into an issue at the end, the boxes around the objects would not appear on the video, and then the program would crash. The program was definitely counting and labelling the objects, I could see it building a list of everything it detected. Here is the error code: error Traceback (most recent call last) in 13 ret,frame = cap.read() 14 ---> 15 ClassIndex, confidece, bbox = model.detect(frame,confThreshold=0.55) 16 17 print(ClassIndex) error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-kh7iq4w7\opencv\modules\imgproc\src esize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

  • @SteelersFans99

    @SteelersFans99

    3 жыл бұрын

    Fixed the problem with the bounding boxes: Replace “img” with “frame” in: cv2.rectangle(img,boxes,(255, 0, 0), 2) cv2.putText(img,classLabels[ClassInd-1] ......., thickness=1) Now it should work and display bounding boxes in the video! Great video! Very helpful!

  • @BruceWayne-xq7bb

    @BruceWayne-xq7bb

    2 жыл бұрын

    bro can u share link of the frozen model

  • @kushaljain3802
    @kushaljain38023 жыл бұрын

    nice

  • @zenerd6944
    @zenerd6944 Жыл бұрын

    hello sir mind if i ask on how can i have audio speech whenever an object is detected how may i implement it…

  • @jhonbyes7896
    @jhonbyes78963 жыл бұрын

    Well

  • @jamilahmarramduarte1575
    @jamilahmarramduarte15753 жыл бұрын

    sir can u help i have a reserch 1 then object detection is my study. but i dont have idea to do a object detection

  • @zafrirhavia2795
    @zafrirhavia27953 жыл бұрын

    thanks for a great video I learned a lot. I would love for such great videos always. just wanted to ask , if you can paste a link to the model (frozen inference graph) for some reason is not in the zip file.

  • @zafrirhavia2795

    @zafrirhavia2795

    3 жыл бұрын

    You can delete the question I found it i just un-tar the file ssd_mobilenet_v3_large_coco_2020_01_14.tar.gz

  • @johndo7003

    @johndo7003

    2 жыл бұрын

    you saved me

  • @megamega3642

    @megamega3642

    Жыл бұрын

    @@zafrirhavia2795 how could you un tar the file please explain mee

  • @mohammedazzan7529

    @mohammedazzan7529

    Жыл бұрын

    @@megamega3642 bro you got the code for this video?

  • @muthukrishnan144
    @muthukrishnan1442 жыл бұрын

    i am not able to find the file frozen inference graph. what should i do?

  • @danaali1710
    @danaali17102 жыл бұрын

    Hi, If I want to detect some other object outdide this 80 classes how can I do that please answer me

  • @SunilSharma-bg6nf
    @SunilSharma-bg6nf Жыл бұрын

    love to South Korea for India

  • @rimshabashir1571
    @rimshabashir15713 жыл бұрын

    👍✔️✨

  • @BruceWayne-xq7bb
    @BruceWayne-xq7bb2 жыл бұрын

    can u give the graph of deep learning architecture? u did not provide that link

  • @AliZain-wf8tj
    @AliZain-wf8tj3 жыл бұрын

    NYC

  • @shwetanshusood9450
    @shwetanshusood94502 жыл бұрын

    Nice video sir. Will you provide the link for code of this program.

  • @user-wq1pv4wz9e
    @user-wq1pv4wz9e Жыл бұрын

    For importing a video, I keep getting an error seen below. error: OpenCV(4.7.0) /Users/xperience/GHA-OCV-Python/_work/opencv-python/opencv-python/opencv/modules/imgproc/src/resize.cpp:4062: error: (-215:Assertion failed) !ssize.empty() in function 'resize' I am not really sure how to fix it and I was hoping somebody might have some insight for me.

Келесі