Accessing USB Devices and Webcams with OpenCV and Python

Ғылым және технология

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/nicknochnack/OpenC...
Links
Documentation: docs.opencv.org/4.5.4/
Python Tutorials: docs.opencv.org/4.5.4/d6/d00/...
Download Samples from here: opencv.org/releases/
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!

Пікірлер: 69

  • @extribolo
    @extribolo5 ай бұрын

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

  • @justanaquarius320
    @justanaquarius3202 жыл бұрын

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

  • @Love_roundabouts
    @Love_roundaboutsАй бұрын

    Amazing mate!! Extremely useful!

  • @zakyvids6566
    @zakyvids65662 жыл бұрын

    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

  • @Powercube7
    @Powercube72 жыл бұрын

    Thank you Nick, very cool

  • @TheNotVisible
    @TheNotVisible11 ай бұрын

    best tutorial over the internet

  • @adarshd249
    @adarshd2492 жыл бұрын

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

  • @NicholasRenotte

    @NicholasRenotte

    2 жыл бұрын

    Happy Diwali Adarsh!

  • @Bianchi77
    @Bianchi772 жыл бұрын

    Nice video, keep it up, thank you :)

  • @umeshbakre770
    @umeshbakre7702 жыл бұрын

    Happy Diwali Nick !!

  • @gazorbpazorbian
    @gazorbpazorbian2 жыл бұрын

    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.

  • @pankajray5939
    @pankajray59392 жыл бұрын

    Love you're videos

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

    thank you for diwali wishes sir you are a great teacher

  • @marchanselthomas7393
    @marchanselthomas73932 жыл бұрын

    Happy Diwali to you too

  • @vinayakrajurs
    @vinayakrajurs2 жыл бұрын

    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.

  • @texasfossilguy
    @texasfossilguy2 жыл бұрын

    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.

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

    Happy Diwali bro god bless

  • @Aditya_Kumar_12_pass
    @Aditya_Kumar_12_pass2 жыл бұрын

    gr8 video. i subscribed

  • @totalengineer9740
    @totalengineer97402 жыл бұрын

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

  • @abcdefghik939
    @abcdefghik9392 жыл бұрын

    enjoyable 👍

  • @jliu83
    @jliu838 ай бұрын

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

  • @ryanhsu6283
    @ryanhsu62832 жыл бұрын

    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.

  • @pavanim6258
    @pavanim62582 жыл бұрын

    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?

  • @balajiv8919
    @balajiv89192 жыл бұрын

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

  • @sunsettech6227
    @sunsettech62272 жыл бұрын

    PERFEEEECCCTTTT

  • @dhxbcmd
    @dhxbcmd2 жыл бұрын

    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.

  • @ehsankhosrojerdi9815
    @ehsankhosrojerdi98154 ай бұрын

    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?

  • @lloydchan9606
    @lloydchan96062 жыл бұрын

    beautiful

  • @markwalterbilaro7007
    @markwalterbilaro70077 ай бұрын

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

  • @leewoonshin4127
    @leewoonshin41272 жыл бұрын

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

  • @xinglinjiang4952
    @xinglinjiang49522 жыл бұрын

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

  • @MvGamingFacts
    @MvGamingFacts2 жыл бұрын

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

  • @AdamCurtis62
    @AdamCurtis622 жыл бұрын

    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

  • @ancomurg
    @ancomurg7 ай бұрын

    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.

  • @hesron-sam
    @hesron-sam2 жыл бұрын

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

  • @jakewhitworth3116
    @jakewhitworth31162 жыл бұрын

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

  • @user-up7ec7mh1l
    @user-up7ec7mh1l2 жыл бұрын

    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?

  • @venkatesh2788
    @venkatesh27882 жыл бұрын

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

  • @khanhduyphamtran9059
    @khanhduyphamtran90592 жыл бұрын

    Please make a video about stereo camera and stereo vision

  • @NicholasRenotte

    @NicholasRenotte

    2 жыл бұрын

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

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

  • @ashleysami1640
    @ashleysami16402 жыл бұрын

    Happy Diwali! 🎆

  • @NicholasRenotte

    @NicholasRenotte

    2 жыл бұрын

    Happy Diwali 🪔!!

  • @pettjols
    @pettjols2 жыл бұрын

    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

  • @NA-cw4pj
    @NA-cw4pj2 жыл бұрын

    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!

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

    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?

  • @IsaacBG84
    @IsaacBG846 ай бұрын

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

  • @a4all616
    @a4all6162 жыл бұрын

    How to display the time date in live webcam window

  • @MTB.J
    @MTB.J Жыл бұрын

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

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

    Can you used Baumer industrial camera using neoapi python ?

  • @sekirokun210
    @sekirokun2102 жыл бұрын

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

  • @ademadani2638
    @ademadani26389 ай бұрын

    Can you tell me what brand webcam you used?

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

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

  • @tejasdharmik2354
    @tejasdharmik23542 жыл бұрын

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

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

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

  • @ericbroun4657
    @ericbroun46572 жыл бұрын

  • @dogukantombul1045
    @dogukantombul104511 ай бұрын

    what if my camera is connected via ethernet cable

  • @fabcraeyz3914
    @fabcraeyz39142 жыл бұрын

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

  • @NicholasRenotte

    @NicholasRenotte

    2 жыл бұрын

    Got any errors for me?

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

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

  • @VicenteHerbert-gm3dm
    @VicenteHerbert-gm3dm4 ай бұрын

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

  • @Jokalor
    @Jokalor10 ай бұрын

    is it possible to pay you for a project?

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

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

  • @BC-zu1yf
    @BC-zu1yf2 жыл бұрын

    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" ?

  • @venkatesh2788
    @venkatesh27882 жыл бұрын

    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 😭

  • @jpsst9
    @jpsst92 жыл бұрын

    Can you add discord admin pls

Келесі