Object Detection using OpenCV | Python | Tutorial for beginners 2020

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 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...

ความคิดเห็น • 403

  • @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
    @madarbakushussain758 2 ปีที่แล้ว

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

  • @nasim3269
    @nasim3269 3 ปีที่แล้ว +1

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

  • @weixinteh7075
    @weixinteh7075 3 ปีที่แล้ว +39

    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 ปีที่แล้ว +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

  • @sudeep003gowda
    @sudeep003gowda 2 ปีที่แล้ว +2

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

  • @hackercop
    @hackercop 3 ปีที่แล้ว

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

  • @colsoyeti1
    @colsoyeti1 2 ปีที่แล้ว

    Thank you for the expertly presented tutorial and demonstration.

  • @Raini41
    @Raini41 3 ปีที่แล้ว

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

  • @karthikeyaanar
    @karthikeyaanar 2 ปีที่แล้ว

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

  • @sangeetagarg239
    @sangeetagarg239 3 ปีที่แล้ว +4

    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.

  • @SteelersFans99
    @SteelersFans99 3 ปีที่แล้ว +15

    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 ปีที่แล้ว

      @@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!!!

  • @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.

  • @pranavgupta9015
    @pranavgupta9015 3 ปีที่แล้ว +5

    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?

  • @connectrRomania
    @connectrRomania ปีที่แล้ว

    Simple. And clear tuto thank you so much

  • @teetanrobotics5363
    @teetanrobotics5363 3 ปีที่แล้ว

    Amazing tutorial.Thanks Mate

  • @md.sahilansari5596
    @md.sahilansari5596 8 หลายเดือนก่อน

    Really that details hits different

  • @mohamedgamer6877
    @mohamedgamer6877 ปีที่แล้ว

    So informative, thanks a lot!

  • @lyndawakoli1596
    @lyndawakoli1596 2 ปีที่แล้ว

    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_bhuyan 2 ปีที่แล้ว

    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.

  • @DassaBanger
    @DassaBanger 2 ปีที่แล้ว

    Amazing video. Great job

  • @user-lj6kw7my6v
    @user-lj6kw7my6v ปีที่แล้ว

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

  • @umairmughal0001
    @umairmughal0001 3 ปีที่แล้ว

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

  • @lavanya2kowmar
    @lavanya2kowmar 2 ปีที่แล้ว

    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

  • @prashantrai5102
    @prashantrai5102 2 ปีที่แล้ว

    thanku for the wonderful explaination

  • @codetackle9662
    @codetackle9662 2 ปีที่แล้ว

    thank you sir it very helpful for me

  • @vijaydattu709
    @vijaydattu709 3 ปีที่แล้ว

    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...

  • @rabirabail752
    @rabirabail752 3 ปีที่แล้ว

    It's really helpful

  • @zunich9177
    @zunich9177 3 ปีที่แล้ว

    KEEP IT UP

  • @EstebantabaresML
    @EstebantabaresML 3 ปีที่แล้ว +1

    Great video

  • @renzomontesa2088
    @renzomontesa2088 3 ปีที่แล้ว

    Nice work bro

  • @pudinanno
    @pudinanno 3 ปีที่แล้ว

    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

  • @gowthamvignesh5802
    @gowthamvignesh5802 ปีที่แล้ว

    Nice video man ,I liked it

  • @albertbenedict
    @albertbenedict 3 ปีที่แล้ว

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

  • @hieutle
    @hieutle 2 ปีที่แล้ว

    what a absolute legend!

    • @hieutle
      @hieutle 2 ปีที่แล้ว +1

      @@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)

  • @Axio95
    @Axio95 2 ปีที่แล้ว

    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 2 ปีที่แล้ว

      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?

  • @mojojojo9121
    @mojojojo9121 2 ปีที่แล้ว

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

  • @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?

  • @ShoaibKhan-ec6fh
    @ShoaibKhan-ec6fh 3 ปีที่แล้ว

    help full👍👍

  • @ozkanuysal1263
    @ozkanuysal1263 3 ปีที่แล้ว +1

    perfect.

  • @pIbrarBabar
    @pIbrarBabar ปีที่แล้ว

    Excellent...!

  • @rahulsatav2247
    @rahulsatav2247 2 ปีที่แล้ว

    Thanku sir.. ✌️❤🤗😇

  • @alifurkanfindik2966
    @alifurkanfindik2966 ปีที่แล้ว

    my friend it was a very good video👌😀

  • @PankajsinghNegi-rs1wz
    @PankajsinghNegi-rs1wz ปีที่แล้ว

    thank u sir for this tutorial

  • @HKIIIVal
    @HKIIIVal 2 ปีที่แล้ว

    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

  • @mamoonst7195
    @mamoonst7195 3 ปีที่แล้ว

    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.

  • @mohanbansal959
    @mohanbansal959 2 ปีที่แล้ว +6

    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

  • @Fatimafatima-jd5ms
    @Fatimafatima-jd5ms 3 ปีที่แล้ว

    Good job

  • @gursehajsinghmehta7099
    @gursehajsinghmehta7099 2 ปีที่แล้ว +1

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

  • @cookwithstyle6286
    @cookwithstyle6286 3 ปีที่แล้ว

    Helpful

  • @mairarafiquerafiquemr9163
    @mairarafiquerafiquemr9163 3 ปีที่แล้ว

    Nyc geeat

  • @crazyworldddar9092
    @crazyworldddar9092 3 ปีที่แล้ว

    Gud job

  • @user-ek9ho1ny8d
    @user-ek9ho1ny8d 2 ปีที่แล้ว

    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?

  • @mdosama1231
    @mdosama1231 ปีที่แล้ว +2

    I don't find the frozen_inference_graph.pd here in the link after downloading,would you please share

  • @vigneshkumars8517
    @vigneshkumars8517 ปีที่แล้ว

    Thank you sir!!!

  • @jadavpur4
    @jadavpur4 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

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

  • @kupolusus
    @kupolusus 2 ปีที่แล้ว

    so helpful video

  • @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

  • @adityapatil1839
    @adityapatil1839 ปีที่แล้ว

    bhai thanks yaar !!!

  • @refrefwgwgwegew
    @refrefwgwgwegew 2 ปีที่แล้ว

    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!

  • @ViralVideos.93
    @ViralVideos.93 2 ปีที่แล้ว

    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

  • @roitai-dev
    @roitai-dev 2 ปีที่แล้ว

    Thank you Teacher

  • @riyushachannel4761
    @riyushachannel4761 2 ปีที่แล้ว

    Thanks bro it work 👍🏻, (auto subscribe)

  • @Cool-rb8nu
    @Cool-rb8nu 3 ปีที่แล้ว

    So good

  • @abhi9.T
    @abhi9.T ปีที่แล้ว

    Thank you sir

  • @wonderman2864
    @wonderman2864 3 ปีที่แล้ว +3

    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 ปีที่แล้ว

      me too same Pb

    • @user-cq1gf8je7l
      @user-cq1gf8je7l ปีที่แล้ว

      feed the model with more data

  • @islamicshorts50611
    @islamicshorts50611 3 ปีที่แล้ว

    awesome

  • @dhirajb9005
    @dhirajb9005 2 ปีที่แล้ว

    I like your video.......

  • @shaheenarana5710
    @shaheenarana5710 3 ปีที่แล้ว

    Great

  • @RAZONEbe_sep_aiii_0819
    @RAZONEbe_sep_aiii_0819 3 ปีที่แล้ว +1

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

  • @AbhishekSawant-yw7mu
    @AbhishekSawant-yw7mu 3 ปีที่แล้ว

    Thanks a lot man !!!

    • @somashekarswamy8509
      @somashekarswamy8509 3 ปีที่แล้ว

      where can i get information abt mobilenetv3 pls guide

  • @user-wq1pv4wz9e
    @user-wq1pv4wz9e 11 หลายเดือนก่อน +1

    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.

  • @astronaut4229
    @astronaut4229 3 ปีที่แล้ว +4

    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!

  • @unknown-bm9pf
    @unknown-bm9pf 2 ปีที่แล้ว

    Thank you ☺️

  • @adityatiwari2325
    @adityatiwari2325 2 ปีที่แล้ว

    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!!

  • @Alpha-hj2ss
    @Alpha-hj2ss 3 ปีที่แล้ว +1

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

    • @ChirathLK
      @ChirathLK 2 ปีที่แล้ว

      you have to run the whole code with the config files

  • @jamilahmarramduarte1575
    @jamilahmarramduarte1575 3 ปีที่แล้ว

    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
    @zafrirhavia2795 3 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

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

    • @mohammedazzan7529
      @mohammedazzan7529 ปีที่แล้ว

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

  • @robirobi9624
    @robirobi9624 3 ปีที่แล้ว

    Nice

  • @hackercop
    @hackercop 3 ปีที่แล้ว

    Is it possible to run this on a GPU to speed things up. Thanks. I hope you get your PhD.

  • @jhonbyes7896
    @jhonbyes7896 3 ปีที่แล้ว

    Well

  • @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…

  • @kavinyudhitia
    @kavinyudhitia ปีที่แล้ว

    nice, thanks!

  • @shreyazalavadiya524
    @shreyazalavadiya524 2 ปีที่แล้ว +1

    Please ..
    Can anyone provide documentation for this project like diagrams, project estimate and quality assurance

  • @fzr1434
    @fzr1434 3 ปีที่แล้ว

    Wow

  • @danaali1710
    @danaali1710 2 ปีที่แล้ว

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

  • @AliZain-wf8tj
    @AliZain-wf8tj 3 ปีที่แล้ว

    NYC

  • @muhammadzubab4223
    @muhammadzubab4223 3 ปีที่แล้ว

    Good

  • @eduardoatilano9450
    @eduardoatilano9450 3 ปีที่แล้ว

    Hello, anyone can help me to fix this error (it shows only when i changue the image)...
    'tuple' object has no attribute 'flatten'

  • @BruceWayne-xq7bb
    @BruceWayne-xq7bb 2 ปีที่แล้ว

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

  • @a065vrajnirajbhairajpurasv9
    @a065vrajnirajbhairajpurasv9 ปีที่แล้ว +2

    Hello sir, thank you so much for this informative video, I was running the same code on my laptop, with all dependencies installed, in the last code segment I’m getting the error
    cv2.imshow(“Object Detection Tutorial”,frame)
    Invalid syntax
    I have rechecked the code multiple times and have also run the above code . Could you please help me with the solution

    • @anjalimehra4238
      @anjalimehra4238 7 หลายเดือนก่อน

      Same, I am doing it in colab. Did you find the solution?

  • @Happy_Kannadiga
    @Happy_Kannadiga 2 ปีที่แล้ว +1

    sir where can i find frozen interference graph pb

  • @TsOd09
    @TsOd09 2 ปีที่แล้ว

    Hi please advise what software packages kneed to me installed before beginning this tutorial?
    I keep getting a cv2 error when executing any commands

    • @adityatiwari2325
      @adityatiwari2325 2 ปีที่แล้ว +1

      you need to download python , pylab, and matplotlib

    • @TsOd09
      @TsOd09 2 ปีที่แล้ว

      @@adityatiwari2325 downloaded it, not getting another error

  • @shadenabdulaziz8837
    @shadenabdulaziz8837 3 ปีที่แล้ว

    thank you! your explained is so amazing really.. but i want ask you about how if i want generate a custom model, to detect something i label ? can you do a tutorial? your way of explained is so understood

  • @bigbull536
    @bigbull536 2 ปีที่แล้ว

    Sir, webcam is not displaying the names please reply sir

  • @Belyrical
    @Belyrical 3 ปีที่แล้ว

    👍👍👍

  • @polysopher
    @polysopher 3 ปีที่แล้ว +2

    Thanks for sharing your time and knowledge!
    Do you have any idea what could be causing this error?

  • @deepanshudutta4443
    @deepanshudutta4443 3 ปีที่แล้ว

    sir how can i use this model in android app,make same thing for android application

  • @hemanthar8363
    @hemanthar8363 2 ปีที่แล้ว

    Can you help me with the voicefeedback for the output .

  • @kushaljain3802
    @kushaljain3802 3 ปีที่แล้ว

    nice