Live Object Detection in Python

Sdílet
Vložit
  • čas přidán 19. 05. 2024
  • Today we learn how to implement live object detection in Python, using machine learning and OpenCV.
    Resources: github.com/chuanqi305/MobileN...
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
    Timestamps:
    (0:00) Intro
    (0:15) Set Up & Resources
    (3:15) Object Recognition on Images
    (21:32) Live Object Recognition
    (24:33) Outro
  • Věda a technologie

Komentáře • 152

  • @eepikki
    @eepikki Před 2 lety +66

    This is the best programming channel on youtube. It teaches well, clear and all in 1 part. Deserves 10 million subscribes atleast

  • @harishh.s4701
    @harishh.s4701 Před 2 lety +18

    Greatly appreciate the content and the effort behind it :)
    I found an opencv error in line 17 in the code. The error said "cv2.dnn has no attribute readNetFromCaffee". In case anyone else also has the same problem, changing the function from cv2.readNetFromCaffee to cv2.readNet helped solve this issue

  • @zivanaf
    @zivanaf Před 8 měsíci

    Great video thank you!
    Where can I find different type of models?
    in this case, the model does include bottles but i also need (in example) cans

  • @zachfenton608
    @zachfenton608 Před 2 lety

    Vielen Dank, bin sehr beeindruckt davon.

  • @amirmoezi8316
    @amirmoezi8316 Před 2 lety +2

    Thanks a million for your invaluable content... it's just wonderful

  • @VisuallyExplained
    @VisuallyExplained Před 2 lety

    Wonderful content, I am a fan! Random question: how did you make the intro music?

  • @oscartrejo6217
    @oscartrejo6217 Před 2 lety +2

    Hey man a lot of thanks you explain very well i got a question i need to find an object that is not common where do i find the model for this object or how can i make my own model?????

  • @leveltube10
    @leveltube10 Před 2 lety +1

    Thank you for sharing content like this, I really appreciate this :)

  • @wko_
    @wko_ Před 2 lety +2

    How this channel haven't one million subscribers yet???
    I N S A N E !

  • @muthurubant5812
    @muthurubant5812 Před 2 lety +1

    You are rocking bro🔥🔥🔥🔥.............. I am always fan for you✨

  • @Unknown-dw2be
    @Unknown-dw2be Před 9 měsíci

    If I want to use a different model like yolo for example does it work the same way?

  • @w7bani156
    @w7bani156 Před 2 lety

    Hi Mr
    That’s amazing tut 🥰✨♥️ i want to asked you
    If i want to detect more object what can i do ?
    Thanks you for every thing

  • @rtr195807
    @rtr195807 Před 2 lety

    As always, thank you very much!

  • @collegemoviesadda3938
    @collegemoviesadda3938 Před 2 lety +7

    Im not getting access to files you provided links in description. Please help

  • @prod.ot5
    @prod.ot5 Před 2 lety +6

    Gotta keep the notifications

  • @Djdjejrhe2283
    @Djdjejrhe2283 Před 2 lety

    This Works Beutifully!

  • @renovationfox8955
    @renovationfox8955 Před 2 lety +1

    Thanks a million, you rock!

  • @mahmoodjamshidian9525
    @mahmoodjamshidian9525 Před 2 lety

    It was very useful. And I had a question, can this program be used to confirm the "I'm not a robot" section in Selenium?

  • @lukasm09
    @lukasm09 Před 5 měsíci

    addition for the facecam part:
    For me it only worked, when I moved following code out of the for-loop. Also added to exit the program when pressing 'q'.
    cv2.imshow("Detected Objects", image)
    key = cv2.waitKey(1)
    if key == ord('q'):
    break

  • @KamehlionHD
    @KamehlionHD Před 10 měsíci +13

    files:
    drive.google.com/drive/folders/13nAcSOx_S8QkbDw_oEimv0yRyfJazUNG

  • @kelixoderamirez
    @kelixoderamirez Před rokem

    permission to learn sir. thank you

  • @AJain-18
    @AJain-18 Před 2 lety

    Nice video !!!
    Keep it up bro !

  • @tecnom7133
    @tecnom7133 Před 9 měsíci +1

    Thanks man

  • @jjspellarts8664
    @jjspellarts8664 Před rokem +2

    How can we add new object category to the list?

  • @parinayseth8813
    @parinayseth8813 Před 2 lety +2

    I have done the whole code correct but still not getting the prediction in the image output, it's just the image gets opened without any prediction

  • @tonkofonko
    @tonkofonko Před 7 měsíci

    Looks like good.

  • @OmarHosam203
    @OmarHosam203 Před 2 lety

    Your video ideas are very good

  • @dgadstv3876
    @dgadstv3876 Před 3 měsíci

    may i know sir what editor you have?

  • @arek7198
    @arek7198 Před rokem

    good learning, thanks a lot

  • @Deethreeful
    @Deethreeful Před 2 lety +1

    Could you explain how to get that model on the computer? if i just use the files, nothing happens

  • @barnacode
    @barnacode Před 9 měsíci +2

    It says I need access to google drive

  • @starrovers13
    @starrovers13 Před rokem

    Excellent video! Do you guys think technology is at that level where object recognition code can identify a e.g. crack on the wall as well?

  • @nasaudeanbogdan7791
    @nasaudeanbogdan7791 Před rokem

    Hello, thank you so much for the video, I have a question, if i wanted to see the distance from the camera to the objects/person, what should i use ?

    • @gtair1520
      @gtair1520 Před rokem

      Almost impossible. Best way would be to use a rangefinder ofc.

  • @user-oj8wj1ds8t
    @user-oj8wj1ds8t Před 8 měsíci

    i have completed python can i make these projects now

  • @user-ee2oe4nz1x
    @user-ee2oe4nz1x Před 2 lety +3

    I can't access the links you provide

  • @stevensantos8002
    @stevensantos8002 Před rokem

    how do you create that file model and put caffemodel and prototxt.txt?

  • @kwamenadadson
    @kwamenadadson Před 2 lety

    Thanks Bro but how can I use It to recognize a polygon

  • @jjspellarts8664
    @jjspellarts8664 Před rokem +1

    Thankyou sir

  • @capture-everything54
    @capture-everything54 Před 2 lety

    how can we catch a frame from video or online videos?

  • @saijin758
    @saijin758 Před rokem

    Can I use this for object detection on screen?

  • @JADE2238
    @JADE2238 Před 2 lety

    Bro please make a video on drone object detection of that contest by mutazas workshop.
    i was working on that drone object detection. all were right but my program were not detecting cars properly so please make a video.
    That contest is over right now

  • @-moeurnsoklin1594
    @-moeurnsoklin1594 Před rokem

    What & Where is the edition codes if I want Windows Notifications when the objects detected?

  • @varungupta974
    @varungupta974 Před 2 lety

    please can you tell me how do you make your intro

  • @jahnavilalwani2365
    @jahnavilalwani2365 Před 2 lety +4

    I'm not able to access caffe model
    Please help if someone got access

  • @digigoliath
    @digigoliath Před 2 lety

    Awesome!!! TQVM!!

  • @alansmith109
    @alansmith109 Před rokem +1

    I was wondering what studio it is that you use for python?

    • @XiBomB4
      @XiBomB4 Před rokem

      looks like pycharm

  • @mayurmoundekar5252
    @mayurmoundekar5252 Před 2 lety

    Hello Sir
    I want to add one feature in this project
    In case screen will empty NO Object are in the screen. So it will display "NO OBJECT DETECTED"
    How we add this feature
    I try some if statement code but it was not succes
    Please help me to add this feature
    Please provide code

  • @imveryhungry112
    @imveryhungry112 Před rokem +1

    where did the file mobilenetssd_deploy.caffemodel come from? It is not in the voc folder on the github site.

  • @cosminpopescu6127
    @cosminpopescu6127 Před rokem +9

    Acces denied when i try to download mobilenet SSD

  • @bvladimirpl
    @bvladimirpl Před rokem

    1 more subs. Thanks for share this super useful vid.

  • @jubabi_studies4462
    @jubabi_studies4462 Před rokem +2

    How to detect other objects ??

  • @prognadiptosaha5792
    @prognadiptosaha5792 Před 9 měsíci

    How can i get the code you wrote?

  • @sathvikreddy5799
    @sathvikreddy5799 Před 2 lety

    Please tell me the name of intro music.

  • @user-vc7is1mc6d
    @user-vc7is1mc6d Před 3 měsíci

    Amazing

  • @AdiKamyk
    @AdiKamyk Před 6 měsíci

    Hi, Could You share me MobileNet-SSD deploy ? I can't dowload this. :(

  • @omarjalled9211
    @omarjalled9211 Před 5 měsíci

    Where can i find the code source pls :')

  • @PXOG7270
    @PXOG7270 Před 2 lety +1

    Hello sir
    Nice project but I am having a problem with saving and using the prototxt file

    • @PXOG7270
      @PXOG7270 Před 2 lety

      It is showing a problem that
      Can't open "MobileSSD_deploy.prototxt.txt" in function 'cv:dnn:ReadProtoFromTextFile'

    • @PXOG7270
      @PXOG7270 Před 2 lety

      I think it's the problem with the extension
      Because I can't save it with extension prototxt

    • @PXOG7270
      @PXOG7270 Před 2 lety

      Please help sir I see your every video and also I make the fantastic project's

    • @PXOG7270
      @PXOG7270 Před 2 lety

      Please help

  • @giorgosvalanides6300
    @giorgosvalanides6300 Před rokem

    i cand deploy the model can you help?

  • @shivkaustubh6024
    @shivkaustubh6024 Před 6 měsíci +3

    Not able to access the deploy file from chuanqi , asks for access request...somebody help me with this

  • @pierregametvshorts3395

    Hey, i have cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'putText'
    > Overload resolution failed:
    > - Can't parse 'org'. Input argument doesn't provide sequence protocol
    > - Can't parse 'org'. Input argument doesn't provide sequence protocol
    what is solutions ? please help

  • @user-ee2oe4nz1x
    @user-ee2oe4nz1x Před 2 lety

    how to get the model

  • @minusharma1738
    @minusharma1738 Před 2 lety

    Nice.

  • @tanmaypanda7701
    @tanmaypanda7701 Před 6 měsíci

    hey anyone have the cafe model drive link ? pls share

  • @siddhesh3651
    @siddhesh3651 Před rokem +3

    Sir please help I am not able to download the caffe model

    • @KamehlionHD
      @KamehlionHD Před 10 měsíci

      drive.google.com/drive/folders/13nAcSOx_S8QkbDw_oEimv0yRyfJazUNG

  • @gtakadze1247
    @gtakadze1247 Před 2 lety

    why drive is close ?

  • @LukieHZX
    @LukieHZX Před 2 lety

    Instead of np.random.whatever you could import random and use random.whatever, don't you?

  • @SA-oj3bo
    @SA-oj3bo Před 2 lety

    Well explained and interesting demo but it seems there is a long way to go to detect all persons and objects as good and as fast as we do....

  • @jankolodziej2752
    @jankolodziej2752 Před 2 lety

    Hi, can you link code ???

  • @user-fh5et8qe9i
    @user-fh5et8qe9i Před 3 měsíci

    Hi, im getting a unexpected type error when I try to resize the image. The project is working, but makes the image extremely zoomed in, any tips on how to solve this ?

    • @user-fh5et8qe9i
      @user-fh5et8qe9i Před 3 měsíci

      Resolved this by adding image = cv2.resize(image, (600, 600) to the code. But how can I find out all the possibilities of items in the class to see what else can be detected as well ?

  • @ANAND_PATELP217
    @ANAND_PATELP217 Před 8 měsíci

    not working netssd link

  • @munakalabhalachandarareddy8826

    i am not able to access caffemodel in github can anyone resolve this please urgent...

  • @subhammohta5383
    @subhammohta5383 Před rokem +2

    Hey,i am not able to get the access for caffemodel , can u please help me with that

    • @Sulltan-al
      @Sulltan-al Před rokem

      me too i can't access it

    • @im_muhilan
      @im_muhilan Před rokem

      @@Sulltan-al me too bro

    • @rolandkiraly2138
      @rolandkiraly2138 Před rokem +7

      here u can find the files: drive.google.com/drive/folders/13nAcSOx_S8QkbDw_oEimv0yRyfJazUNG

    • @dosaimre
      @dosaimre Před rokem +1

      @@rolandkiraly2138 Many thanks for the link. Köszi a segítséget, sikerült innen letölteni 👍

    • @rolandkiraly2138
      @rolandkiraly2138 Před rokem

      @@dosaimre anytime😁

  • @subhaschandramishra8374
    @subhaschandramishra8374 Před 9 měsíci

    Where is the code to copy 😅

  • @abdulnasser7624
    @abdulnasser7624 Před 2 lety

    Hello, how long does it take to get permission for the ‘MobileNet-SSD’ file?

    • @jaydeepghosh1717
      @jaydeepghosh1717 Před 2 lety

      Did you get

    • @jaysee_6292
      @jaysee_6292 Před 2 lety

      I was having trouble with this too... I requested permission but I'm not sure if that's how to go about it. I know you commented 5 months ago but did you ever get it?

    • @user-ur7to7ff7v
      @user-ur7to7ff7v Před rokem

      @@jaysee_6292 did you get the model?

  • @amitdutta3875
    @amitdutta3875 Před 2 lety

    can you make a video on custom object detection.

    • @wz_lx24
      @wz_lx24 Před 2 lety

      With this Video you could do it yourself.

    • @leveltube10
      @leveltube10 Před 2 lety +1

      @@wz_lx24 Maybe he would like to recognize unicorns, so he has to train a model to do that ^^

  • @aiwithdheeraj5597
    @aiwithdheeraj5597 Před 2 lety

    Custom object detection sir next time

  • @deepakporwal9477
    @deepakporwal9477 Před 2 lety

    not able to download files please allow me to dowmload

  • @krishnagarg6874
    @krishnagarg6874 Před rokem

    Can you share the code

  • @johnmelbolaybolay6269

    Hello, how do I get access to download deploy?

    • @cynthialai199723
      @cynthialai199723 Před rokem

      just search the file name, there are other deploy out there you can download and no need access

  • @vishalshaw2297
    @vishalshaw2297 Před rokem

    cv2.dnn and cv2.imread not working..How to fix it?

  • @biteprogram
    @biteprogram Před rokem

    When I click deploy, it says I have not access.
    Please help me!

    • @untoastedbread0
      @untoastedbread0 Před 11 měsíci

      from @KamehlionHD: drive.google.com/drive/folders/13nAcSOx_S8QkbDw_oEimv0yRyfJazUNG

    • @quangtranminh624
      @quangtranminh624 Před 14 dny

      @@untoastedbread0 but how can I the file caffemodel, plz help me. It says "The file is not displayed in the text editor because it is either binary or uses an unsupported text encoding." on my visual studio code

  • @thesas5132
    @thesas5132 Před 2 lety +2

    Where can I find the source code?

  • @cameronvincent
    @cameronvincent Před 5 měsíci

    4 legs and long thing definitely a giraffe and not a chair

  • @selmamilena2503
    @selmamilena2503 Před rokem +2

    am i the only one that cant not download the files from git?

    • @KamehlionHD
      @KamehlionHD Před rokem

      yes its says i need access
      edit: drive.google.com/drive/folders/13nAcSOx_S8QkbDw_oEimv0yRyfJazUNG

    • @selmamilena2503
      @selmamilena2503 Před rokem +1

      @@KamehlionHD omg thank you so much

    • @untoastedbread0
      @untoastedbread0 Před 11 měsíci +1

      @@KamehlionHD thanks

    • @legend9002
      @legend9002 Před 10 měsíci

      @@KamehlionHD I appreciate that thank you

  • @mimurajam1501
    @mimurajam1501 Před 2 lety

    fucking cool

  • @luka2239
    @luka2239 Před rokem +1

    it says I need access to download deploy?

  • @JabiloJoseJ
    @JabiloJoseJ Před 2 lety

    error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "/MobileNetSSD_deploy.prototxt"
    in function 'cv::dnn::ReadProtoFromTextFile'
    I am getting this error .... can anyone help me, please..

  • @VASUDHARANIPATHEDAMIS
    @VASUDHARANIPATHEDAMIS Před rokem +1

    why do I get this error
    net = cv2.dnn.readNetFromCaffe(prototxt_path, model_path)
    cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1126: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "models\MobileNetSSD_deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'

  • @Shubhamzingh
    @Shubhamzingh Před 10 dny

    not able to get that MobileNetSSD_deploy.caffemodel

  • @BCheck-
    @BCheck- Před 11 měsíci +1

    Anyone else having trouble downloading the "MobileNetSSD_deploy.caffemodel"? When I click the link it says that I don't have permission and that I have to ask for it. I asked permission a couple hours ago and still don't got it.

    • @KamehlionHD
      @KamehlionHD Před 10 měsíci

      drive.google.com/drive/folders/13nAcSOx_S8QkbDw_oEimv0yRyfJazUNG

    • @quangtranminh624
      @quangtranminh624 Před 14 dny

      drive.google.com/drive/folders/13nAcSOx_S8QkbDw_oEimv0yRyfJazUNG
      I have the file right here but I don't know how to open it. It says: "The file is not displayed in the text editor because it is either binary or uses an unsupported text encoding."