Accessing USB Devices and Webcams with OpenCV and Python

  Рет қаралды 88,015

Nicholas Renotte

Nicholas Renotte

Күн бұрын

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 жыл бұрын
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 жыл бұрын
thank you so much, you always expland everything clearly!!! good job
@extribolo
@extribolo 4 ай бұрын
Quickly, Smart and Complet...!!! Thanks Nicholas
@Love_roundabouts
@Love_roundabouts 6 күн бұрын
Amazing mate!! Extremely useful!
@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.
@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.
@Powercube7
@Powercube7 2 жыл бұрын
Thank you Nick, very cool
@texasfossilguy
@texasfossilguy 2 жыл бұрын
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.
@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?
@adarshd249
@adarshd249 2 жыл бұрын
Happy Diwali Nick Thank you for speeding the light of knowledge 🪔🤝🤝
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Happy Diwali Adarsh!
@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 ай бұрын
Hi Nicholas, what model of webcam do did you use for this? The footage is quite good.
@Bianchi77
@Bianchi77 2 жыл бұрын
Nice video, keep it up, thank you :)
@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?
@ArunKumar_237
@ArunKumar_237 Жыл бұрын
thank you for diwali wishes sir you are a great teacher
@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
@MvGamingFacts
@MvGamingFacts 2 жыл бұрын
Can you do a tutorial for uploading a model into a cv2 and run it with gui pyqt or tkinter? Thanks!
@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?
@ademadani2638
@ademadani2638 7 ай бұрын
Can you tell me what brand webcam you used?
@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).
@pankajray5939
@pankajray5939 2 жыл бұрын
Love you're videos
@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!
@umeshbakre770
@umeshbakre770 2 жыл бұрын
Happy Diwali Nick !!
@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?
@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.. 😅
@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 жыл бұрын
gr8 video. i subscribed
@MTB.J
@MTB.J Жыл бұрын
First thank you so much. With this code I can use any external camera not only the webcam?
@Chetan_Hansraj
@Chetan_Hansraj Жыл бұрын
Happy Diwali bro god bless
@marchanselthomas7393
@marchanselthomas7393 2 жыл бұрын
Happy Diwali to you too
@ancomurg
@ancomurg 6 ай бұрын
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.
@Jokalor
@Jokalor 9 ай бұрын
is it possible to pay you for a project?
@balajiv8919
@balajiv8919 2 жыл бұрын
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 😅.
@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)
@abcdefghik939
@abcdefghik939 2 жыл бұрын
enjoyable 👍
@sekirokun210
@sekirokun210 2 жыл бұрын
Is there any way to improve OpenCV performance during ML predictions real time? Cause its laggy frames for my Intel laptop
@leewoonshin4127
@leewoonshin4127 2 жыл бұрын
Video request: please show tutorial on how Panoptic Segmentation works and implement to raspberry pi ?
@dogukantombul1045
@dogukantombul1045 9 ай бұрын
what if my camera is connected via ethernet cable
@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
@surajwagh3654
@surajwagh3654 Жыл бұрын
Can you used Baumer industrial camera using neoapi python ?
@IsaacBG84
@IsaacBG84 4 ай бұрын
Can you detect quiality of a fruit? i mean more than just classification but measure colour
@sunsettech6227
@sunsettech6227 Жыл бұрын
PERFEEEECCCTTTT
@rishikatna8328
@rishikatna8328 11 ай бұрын
Want capture image from usb connected (baumer) camera helps me thank you
@venkatesh2788
@venkatesh2788 2 жыл бұрын
Please teach me how to freeze a model to convert into tensorflowjs
@FiniX97_
@FiniX97_ Жыл бұрын
is it possible to display multiple cameras through python? could you teach us?
@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?
@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.
@totalengineer9740
@totalengineer9740 2 жыл бұрын
Happy diwali Nick🎆✨🎇🪔🪔love from 🇮🇳 INDIA❤
@lloydchan9606
@lloydchan9606 2 жыл бұрын
beautiful
@tejasdharmik2354
@tejasdharmik2354 2 жыл бұрын
Can u make video on driver drowsiness using CNN...
@a4all616
@a4all616 2 жыл бұрын
How to display the time date in live webcam window
@khanhduyphamtran9059
@khanhduyphamtran9059 2 жыл бұрын
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.
@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" ?
@fabcraeyz3914
@fabcraeyz3914 2 жыл бұрын
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 ?
@ashleysami1640
@ashleysami1640 2 жыл бұрын
Happy Diwali! 🎆
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Happy Diwali 🪔!!
@baongocnguyen7702
@baongocnguyen7702 Жыл бұрын
Idk why but I tried 60 times and it still couldnt connect to my external camera?? please help
@VicenteHerbert-gm3dm
@VicenteHerbert-gm3dm 2 ай бұрын
Doskonały film. Proszę, jaki jest najlepszy sposób na opłacalne inwestycje w handel kryptowalutami?
@venkatesh2788
@venkatesh2788 2 жыл бұрын
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
Detect Edges with OpenCV and Python | Computer Vision Tutorial
20:47
Nicholas Renotte
Рет қаралды 28 М.
How to Code a AI Trading bot (so you can make $$$)
35:09
Nicholas Renotte
Рет қаралды 439 М.
Who enjoyed seeing the solar eclipse
00:13
Zach King
Рет қаралды 136 МЛН
didn't want to let me in #tiktok
00:20
Анастасия Тарасова
Рет қаралды 10 МЛН
The magical amulet of the cross! #clown #小丑 #shorts
00:54
好人小丑
Рет қаралды 20 МЛН
Computer Vision With Arduino |  2 Hour Course | OpenCV Python
2:05:07
Murtaza's Workshop - Robotics and AI
Рет қаралды 2,7 МЛН
IP camera stream using RTSP and openCV python
4:09
Yahiya Mulla
Рет қаралды 81 М.
How to use Phone as a webcam via USB Method
10:16
Budget 0
Рет қаралды 1,7 МЛН
AI Face Body and Hand Pose Detection with Python and Mediapipe
42:55
Nicholas Renotte
Рет қаралды 135 М.
AI Body Language Decoder with MediaPipe and Python in 90 Minutes
1:32:40
Nicholas Renotte
Рет қаралды 79 М.
Object Detection in 10 minutes with YOLOv5 & Python!
10:45
Rob Mulla
Рет қаралды 210 М.
FACE RECOGNITION  + ATTENDANCE PROJECT | OpenCV Python | Computer Vision
52:24
Murtaza's Workshop - Robotics and AI
Рет қаралды 1,5 МЛН
OPTICAL MARK RECOGNITION (OMR) MCQ Automated Grading- OpenCV Python
1:53:26
Murtaza's Workshop - Robotics and AI
Рет қаралды 138 М.
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Рет қаралды 427 М.
Главная проблема iPad Pro M4 OLED!
13:04
THE ROCO
Рет қаралды 49 М.
Клавиатура vs геймпад vs руль
0:47
Balance
Рет қаралды 1 МЛН
Главная проблема iPad Pro M4 OLED!
13:04
THE ROCO
Рет қаралды 49 М.