Accessing USB Devices and Webcams with OpenCV and Python

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

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

    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

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

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

  • @extribolo
    @extribolo 4 หลายเดือนก่อน

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

  • @Love_roundabouts
    @Love_roundabouts 11 วันที่ผ่านมา

    Amazing mate!! Extremely useful!

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

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

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

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

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

    Thank you Nick, very cool

  • @TheNotVisible
    @TheNotVisible 9 หลายเดือนก่อน

    best tutorial over the internet

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

  • @jliu83
    @jliu83 7 หลายเดือนก่อน +1

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

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

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

  • @ehsankhosrojerdi9815
    @ehsankhosrojerdi9815 2 หลายเดือนก่อน

    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?

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

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

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

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

    Nice video, keep it up, thank you :)

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

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

  • @NA-cw4pj
    @NA-cw4pj ปีที่แล้ว

    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!

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

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

    Can you tell me what brand webcam you used?

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

    Love you're videos

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

    thank you for diwali wishes sir you are a great teacher

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

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

  • @dogukantombul1045
    @dogukantombul1045 9 หลายเดือนก่อน +2

    what if my camera is connected via ethernet cable

  • @ancomurg
    @ancomurg 6 หลายเดือนก่อน +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.

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

    Happy Diwali Nick !!

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

    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?

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

    gr8 video.
    i subscribed

  • @markwalterbilaro7007
    @markwalterbilaro7007 6 หลายเดือนก่อน

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

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

    enjoyable 👍

  • @IsaacBG84
    @IsaacBG84 5 หลายเดือนก่อน

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

  • @MTB.J
    @MTB.J ปีที่แล้ว

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

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

    Happy Diwali to you too

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

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

    Happy Diwali bro god bless

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

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

    Can you used Baumer industrial camera using neoapi python ?

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

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

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

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

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

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

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

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

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

    beautiful

  • @Jokalor
    @Jokalor 9 หลายเดือนก่อน

    is it possible to pay you for a project?

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

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

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

    PERFEEEECCCTTTT

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

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

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

  • @VicenteHerbert-gm3dm
    @VicenteHerbert-gm3dm 2 หลายเดือนก่อน +1

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

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

    How to display the time date in live webcam window

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

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

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

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

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

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

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

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

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

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

    Happy Diwali! 🎆

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

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

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

    Can you add discord admin pls