Це відео не доступне.
Перепрошуємо.

Accessing USB Devices and Webcams with OpenCV and Python

Поділитися
Вставка
  • Опубліковано 18 сер 2024
  • Welcome to the OpenCV Basics series. In this series, we'll be going through all the basics of OpenCV from the ground up.
    In this video you'll learn how to:
    1. Access your webcam using OpenCV and cv2.VideoCapture
    2. Take Photos with your Webcam or USB device using Python
    3. Produce a real time webcam feed using Python and OpenCV
    Get the code: github.com/nic...
    Links
    Documentation: docs.opencv.or...
    Python Tutorials: docs.opencv.or...
    Download Samples from here: opencv.org/rel...
    Chapters:
    0:00 - Start
    0:36 - Explainer
    1:29 - Tutorial Kickoff
    2:02 - Whiteboard
    5:43 - Import Dependencies
    6:58 - Connect to a Webcam
    9:14 - The Camera I use for Computer Vision
    9:36 - Finding Your Video Capture Device
    12:17 - Take a Photo with OpenCV
    15:06 - Accesss Video from Your Webcam
    Oh, and don't forget to connect with me!
    LinkedIn: bit.ly/324Epgo
    Facebook: bit.ly/3mB1sZD
    GitHub: bit.ly/3mDJllD
    Patreon: bit.ly/2OCn3UW
    Join the Discussion on Discord: bit.ly/3dQiZsV
    Happy coding!
    Nick
    P.s. Let me know how you go and drop a comment if you need a hand!

КОМЕНТАРІ • 70

  • @adarshd249
    @adarshd249 2 роки тому +4

    Happy Diwali Nick
    Thank you for speeding the light of knowledge 🪔🤝🤝

  • @justanaquarius320
    @justanaquarius320 2 роки тому +2

    thank you so much, you always expland everything clearly!!! good job

  • @extribolo
    @extribolo 7 місяців тому

    Quickly, Smart and Complet...!!! Thanks Nicholas

  • @zakyvids6566
    @zakyvids6566 2 роки тому +4

    Hi Nick, I’m new to your channel and I appreciate the videos you bring to us they are interesting informative and teach new innovative ways to learn new projects.
    I do have a request which is to consider making a 30-45 minute python crash course that covers the basics of python programming/or basics to get us started making projects in python etc

  • @Love_roundabouts
    @Love_roundabouts 3 місяці тому

    Amazing mate!! Extremely useful!

  • @totalengineer9740
    @totalengineer9740 2 роки тому +1

    Happy diwali Nick🎆✨🎇🪔🪔love from 🇮🇳 INDIA❤

  • @TheNotVisible
    @TheNotVisible Рік тому

    best tutorial over the internet

  • @jliu83
    @jliu83 10 місяців тому +1

    Hi Nicholas, what model of webcam do did you use for this? The footage is quite good.

  • @Powercube7
    @Powercube7 2 роки тому +1

    Thank you Nick, very cool

  • @gazorbpazorbian
    @gazorbpazorbian 2 роки тому

    dude, just discovered your channel and I'm amazed, :D you should do stuff on the jetson nano or raspberry pi. I mean, although is basically the same thing, it would be interesting on the limitations of the hardware and stuff you could do with it.

  • @ancomurg
    @ancomurg 9 місяців тому +1

    How can I get a list of video devices connected included the camera? For instance: I would like to get a usb video capture conected. Thanks for help me.

  • @jbelmont72
    @jbelmont72 18 днів тому

    First, I pray you are faring better. Loss of a parent is difficult. Second. I want to use argparse to control my programs with mediapipe. Want to use different classes in my master program. TO do so, I think I need the IP_URL address for my web cam even though I have it connected by USB and oftentimes just use my continuity camera on my MAC. Can you suggest what the -I -input path would look like and how to find it? thank you.

  • @ArunKumar_237
    @ArunKumar_237 Рік тому

    thank you for diwali wishes sir you are a great teacher

  • @texasfossilguy
    @texasfossilguy 2 роки тому +1

    Video request: please show how to do an analysis on an image mask as a second level analysis. For example if it identifies a Red ball from a ball pit, is the red ball rough or smooth? A second tier level analysis? Also shape of the mask outline would be an interesting criteria as well or things like that.

  • @ehsankhosrojerdi9815
    @ehsankhosrojerdi9815 5 місяців тому

    Hi Nick.
    Thanks for the great tutorial.
    If I want to compare consecutive frames from camera and processing takes a little while, what happens when it comes to the next frame analysis?
    Does it start analyzing from the current frame and miss those passed during the analysis?

  • @pankajray5939
    @pankajray5939 2 роки тому +1

    Love you're videos

  • @markwalterbilaro7007
    @markwalterbilaro7007 9 місяців тому

    can you have a tutorial too how to access the depth camera and IR camera, like of what ScanMax M5 ToF camera capable of?

  • @umeshbakre770
    @umeshbakre770 2 роки тому

    Happy Diwali Nick !!

  • @vinayakrajurs
    @vinayakrajurs 2 роки тому

    Great video Nick,
    Can you do a time series forecasting for attention based sequence to sequence model maybe sometime in the future, i really loved the stock prediction video using RL and i wanted to explore more models for Times series Forecasting.
    Thank you for uploading great Videos man.

  • @dhxbcmd
    @dhxbcmd 2 роки тому

    thank you for your lecture
    wonder
    Start video recording key = 'F5'
    Video recording pause key ='F6'
    End section (off) key ='q'
    If you can tell me how to do it, thank you.

  • @marchanselthomas7393
    @marchanselthomas7393 2 роки тому

    Happy Diwali to you too

  • @venkatesh2788
    @venkatesh2788 2 роки тому +1

    Please teach me how to freeze a model to convert into tensorflowjs

  • @ryanhsu6283
    @ryanhsu6283 2 роки тому

    It's a great video. Thank you for your sharing. I have a question. If the camera is connected through network interface card(Intel chip). what should I code it? Thank you.

  • @balajiv8919
    @balajiv8919 2 роки тому +1

    Please do a project on federated learning mate.apply the fed learning concept in medical data it will be helpful for my studies.i am commenting on every video 😅.

  • @Bianchi77
    @Bianchi77 2 роки тому

    Nice video, keep it up, thank you :)

  • @Aditya_Kumar_12_pass
    @Aditya_Kumar_12_pass 2 роки тому +1

    gr8 video.
    i subscribed

  • @user-up7ec7mh1l
    @user-up7ec7mh1l 2 роки тому

    Thank you for the good video. I succeeded in connecting. But why is my screen black? Can't I connect to my Photo Booth in MacBook? Do I have to buy an external camera?

  • @burhanuddindewaswala6888
    @burhanuddindewaswala6888 Рік тому

    i have a doubt is there a chance that the index at which web cam is configured taht can channge once you restart the systems example if we can access the camera via cv2.videocapture(0) then post restart we are able to access the webcam by cv2.videocapture(1)

  • @dogukantombul1045
    @dogukantombul1045 Рік тому +2

    what if my camera is connected via ethernet cable

  • @jakewhitworth3116
    @jakewhitworth3116 2 роки тому

    Do you use jupyternotebook outside of computer vision? Like for example the work you do at IBM, is most of that done in jupyter?

  • @xinglinjiang4952
    @xinglinjiang4952 2 роки тому

    hello. At what point the physical camera start to work? i am try to precisely control the starting time of two identical cameras so they can be frame synchronized for stereo vision. first i would like do it by software. but i can also div the hard ware (the easist way should be starting the power supply at the same time by a shared switch).

  • @IsaacBG84
    @IsaacBG84 8 місяців тому

    Can you detect quiality of a fruit? i mean more than just classification but measure colour

  • @khanhduyphamtran9059
    @khanhduyphamtran9059 2 роки тому +1

    Please make a video about stereo camera and stereo vision

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +1

      New projects kicking off in a few weeks!! Will take a look at the oakd maybe.

  • @Chetan_Hansraj
    @Chetan_Hansraj Рік тому

    Happy Diwali bro god bless

  • @pavanim6258
    @pavanim6258 2 роки тому

    Thanks for your Super and clear explanation.I've a question regarding text capture in an application in python.How can I identify name from the application image?

  • @fabcraeyz3914
    @fabcraeyz3914 2 роки тому +1

    I cannot connect my camera to my google collar sheet? I already looked at stack overflow, but could not find a solution. Any ideas?

  • @MTB.J
    @MTB.J Рік тому

    First thank you so much. With this code I can use any external camera not only the webcam?

  • @NA-cw4pj
    @NA-cw4pj 2 роки тому

    Hi Nicholas, Excelent Video!! but i have a special question! what if I have a vcr recorder, and an easy cap, but i don´t have the correct program for the easy cap, can i choose this device to digitalize my vhs?! Please & TYSM!

  • @leewoonshin4127
    @leewoonshin4127 2 роки тому

    Video request:
    please show tutorial on how Panoptic Segmentation works and implement to raspberry pi ?

  • @MvGamingFacts
    @MvGamingFacts 2 роки тому

    Can you do a tutorial for uploading a model into a cv2 and run it with gui pyqt or tkinter? Thanks!

  • @AdamCurtis62
    @AdamCurtis62 2 роки тому

    Thanks for the great tutorials, I have been following along but using Jupyter notebooks inside of VSCode but have noticed that when I use cv2.destroyAllWindows it fails to close the window unless I also add cv2.waitKey(1) after that line. I do use cv2waitKey() early in my code as part of the if statement which successfully ends the loop. Just wondering if this is a VSCode weirdness, not that it is a drama to add the extra line but I would just like to know what is causing this issue. Thank You

  • @hesron-sam
    @hesron-sam 2 роки тому

    Good day sir, i have watch the yolo tutorial with pytorch on your channel... May i request simple video on how do we can deploy the code into app or web in real time.... some say that it can be done using flask.. 😅

  • @pettjols
    @pettjols 2 роки тому

    This channel is exceptional!
    Could you also make a video on the new Pose Detection in the Google ML Kit, interested in how you would do it and your views on the new version :D

  • @moralexbme
    @moralexbme 2 роки тому

    I have a fisheye camera that has 7 different sources, each source representing a different angle. How can i make a control for it through my .py code so that, when i run this as a .exe file, i can choose which source to view?

  • @abcdefghik939
    @abcdefghik939 2 роки тому +1

    enjoyable 👍

  • @surajwagh3654
    @surajwagh3654 Рік тому

    Can you used Baumer industrial camera using neoapi python ?

  • @ademadani2638
    @ademadani2638 10 місяців тому

    Can you tell me what brand webcam you used?

  • @rishikatna8328
    @rishikatna8328 Рік тому

    Want capture image from usb connected (baumer) camera helps me thank you

  • @ashleysami1640
    @ashleysami1640 2 роки тому +1

    Happy Diwali! 🎆

  • @FiniX97_
    @FiniX97_ Рік тому

    is it possible to display multiple cameras through python? could you teach us?

  • @a4all616
    @a4all616 2 роки тому

    How to display the time date in live webcam window

  • @sunsettech6227
    @sunsettech6227 2 роки тому

    PERFEEEECCCTTTT

  • @sekirokun210
    @sekirokun210 2 роки тому

    Is there any way to improve OpenCV performance during ML predictions real time? Cause its laggy frames for my Intel laptop

  • @vietnguyenquoc6366
    @vietnguyenquoc6366 Рік тому

    Hi. I want to get name of webcams. Can you help me ?

  • @VicenteHerbert-gm3dm
    @VicenteHerbert-gm3dm 5 місяців тому +1

    Doskonały film. Proszę, jaki jest najlepszy sposób na opłacalne inwestycje w handel kryptowalutami?

  • @ngynbngoc
    @ngynbngoc 2 роки тому

    Idk why but I tried 60 times and it still couldnt connect to my external camera?? please help

  • @lloydchan9606
    @lloydchan9606 2 роки тому +1

    beautiful

  • @tejasdharmik2354
    @tejasdharmik2354 2 роки тому

    Can u make video on driver drowsiness using CNN...

  • @Jokalor
    @Jokalor Рік тому

    is it possible to pay you for a project?

  • @venkatesh2788
    @venkatesh2788 2 роки тому +1

    Sir if I convert the tensorflow transfer learning model into tensorflowjs. I get this error
    💥This may due to the following reason:
    1. The layer is defined in python, in which case it needs to be ported to tensorflowjs or your JavaScript code
    2. The custom layer is defined in JavaScript, but is not registered properly with tf.serialization.registerClass
    Please 🙏 reply 😭

  • @BC-zu1yf
    @BC-zu1yf 2 роки тому

    Hi nick! Thankful for your tutorials! I am following this but I am running Jupiter Notebook thru Docker and I have tried 1~10 for the VideoCapture and I can't seem to make it work. just tell's me "[ WARN:0@213.087] global /io/opencv/modules/videoio/src/cap_v4l.cpp (876) open VIDEOIO(V4L2): can't find camera device" ?

  • @ericbroun4657
    @ericbroun4657 2 роки тому

  • @jpsst9
    @jpsst9 2 роки тому

    Can you add discord admin pls