AI for Everyone LESSON 5: Installing OpenCV in Windows and Launching WEBCAM

  Рет қаралды 23,896

Paul McWhorter

Paul McWhorter

3 жыл бұрын

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In these lessons we will be using a logitech webcam. If you use the identical camera that I have, you will be ensured to get the same results. I suggest your life will be easier if you use the same camera I am using, available from Amazon below:
amzn.to/3iwgIW0
In this video I show how to install opencv on windows, and how to write your first opencv program. We will show how to grab a frame from the camera, and then show it using cv2.imshow.
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]
#ArtificialIntelligence
#Python
#VisualStudioCode

Пікірлер: 253
@kenmeyer100
@kenmeyer100 3 жыл бұрын
After I had installed the webcam it did not work , the program crashed and I kept getting this error "[ WARN:0] global C:\Users unneradmin\AppData\Local\Temp\pip-req-build-uzca7qz1\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback" until I found out that I had Windows to grant apps access to the camera . May be this helps some reader who watches this series some time in the future.
@johnstephenson4428
@johnstephenson4428 3 жыл бұрын
How did you grant permission?
@johnstephenson4428
@johnstephenson4428 3 жыл бұрын
I am getting [WARN:0] global C:\Users unneradmin\AppData\Local\Temp\pip-req-build-uzca7qz1\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback Traceback (most recent call last): File "c:/Users/John/Documents/Python/openCV-1.py", line 6, in cv2.imshow('my WEBcam',frame) cv2.error: OpenCV(4.5.3) C:\Users unneradmin\AppData\Local\Temp\pip-req-build-uzca7qz1\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
@automaticgames6838
@automaticgames6838 2 жыл бұрын
I found success using this as the set cam code "cam=cv2.VideoCapture(1, cv2.CAP_DSHOW)"
@tobioflyhigh666
@tobioflyhigh666 2 жыл бұрын
@@johnstephenson4428 go to ur camera settings and allow access to i guess the visual code app
@collinb5524
@collinb5524 Жыл бұрын
There is no option to give permission to use the webcam to visual studio code. It all works until i try to move the window
@stevetyphoon
@stevetyphoon 2 жыл бұрын
Paul, I have to tell you that your lessons are absolutely top quality. You have taught me C++ and Autodesk Fusion 360 over the last years. This has enabled me to build a small booby trap 'detect and disable' robot for future use by the HALO Trust in Syria, clearing booby trap IEDs in buildings. (It's currently undergoing evaluation exercises before being shipped out to Syria.) I have a couple of ideas for using AI so am now following this course. The African Queen is a great movie. You are a great teacher. And I am excited to learn more of the possibilities using AI. Thanks Oh, a top tip from me. Put your hot coffee into a cocktail shaker with ice cubes and shake vigorously.
@s_y_305
@s_y_305 3 жыл бұрын
Learned Arduino from your channel and right when I needed a tutorial for OpenCv, here you are Mr Paul McWhorter with your great content. Thank you so much :D
@robertnowak7784
@robertnowak7784 3 жыл бұрын
The next awesome lesson. And so easy to follow while providing insights into really important basics of version control that I was actually struggling for a long time (virtual environment and corrupt programs due to a mess of various libraries). From crucial fundamentals right into coding (also like Visual Studio Code while used pycharm before that). Brings me so much joy during the weekend! - Keep on going with those videos - AfricanQueen
@thebestusernameevr
@thebestusernameevr 7 ай бұрын
Hey Mr.McWhorter, Thank you for taking the time to make these thorough lessons. I've went through some of your Raspberry Pi tutorials, so I'll be excited to take the knowledge from here and apply it to the Pi. These videos have been helpful to me in career switch. I originally did my undergrad in social work, but now I'm doing a master's in computer science. I'm thinking that I want to go into embedded systems. But I do really appreciate how thorough these videos are. I've watched other OpenCV tutorials that weren't quite as thorough, and I felt like I ultimately didn't learn a whole lot.
@wayneswan3092
@wayneswan3092 2 жыл бұрын
Paul. Just gotta say it again, you're an amazing teacher! Even after I apparently missed the installation of python 3.6.6, I still managed to find it, install it, set up virtual environment, and set up visual studio python interpreter on my own. NOW, I'm ready continue watching lesson 5.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Great to hear!
@cbrombaugh
@cbrombaugh 3 жыл бұрын
I AM LEGEND! I also played around with resizing the windows and showed video from both the Logitech camera and my laptop's camera. As usual, thanks for the most excellent lessons Paul.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Fantastic!
@DrJALAGHARI
@DrJALAGHARI 3 жыл бұрын
Wonderful explanation about an important topic.
@paullein4043
@paullein4043 Жыл бұрын
African Queen I am having a great time following these videos. So far, your instructions have performed flawlessly. I am now going to try to do this using a linux virtual machine. Wish me luck! Thanks Paul!
@amjadmoughal
@amjadmoughal 2 жыл бұрын
Sir. You are a good teacher. 👍
@Melisa-kj5xr
@Melisa-kj5xr 2 жыл бұрын
Just how wonderful.. I really like you and your STUFFS
@user-cv2us7rs9k
@user-cv2us7rs9k Жыл бұрын
Thank you Paul !!!!
@columbofiliaparatodos
@columbofiliaparatodos 3 жыл бұрын
Thank you for this class.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Always welcome
@benedictgab7226
@benedictgab7226 3 жыл бұрын
African Queen. I learnt a lot from your arduino series . I even used an arduino to program an atiny85 which I used in my rc Bluetooth remote car.Thanks🙋🙋
@pianofuerte
@pianofuerte 6 ай бұрын
Thank you. African Queen. I painfully managed to run Visual Studio Code in my Macbook.But now I can follow the rest of the class.
@aleksanderklimczyk7879
@aleksanderklimczyk7879 2 жыл бұрын
I finished the homework to perfection. African Queen.
@user-nz3dh4ud8u
@user-nz3dh4ud8u 2 ай бұрын
African queeeeeeeeeen I wanna thank you alot Mr. Paul my life has changed a lot because of your videos i now have built arduino robot and recently started working on an aytonomous one with raspberry pi armed with your raspberry pi tutorial.
@krisztianistvancsato5940
@krisztianistvancsato5940 Жыл бұрын
I am legend African Queen Paul! You were born to teach. I have had it on my priority list to get started with AI for like half a decade. You might just end up being responsible for me actually doing so. (single handedly I may add) By the way, I have played around with openCV + np + ctypes and in the end I have stacked the frames first horizontally in upper/lower rows, then stacked the rows vertically. Then I got one unified window which I've resized according to my current screen, so when I move it to another screen, it adjust to the active screen. Nice shit. 🙂
@briankelly4095
@briankelly4095 2 жыл бұрын
Another great lesson Paul. I've got 2 frames each appearing twice @ 0,0, 640,0, 0,480 and 640,480. Needing unique names for the windows banners caught me at first but I am legend. So is the African Queen. Bogart at his surly best.
@MrDombev
@MrDombev 3 жыл бұрын
Hi Paul I succeeded to make it so I am a legend. But I did your assignment run Mac OS Catalina and using my integrated camera. Setting the environment was a bit different but so far so good, donut. Thanks for your fantastic tutorial
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Nice work!
@MrCameronMoore
@MrCameronMoore 3 жыл бұрын
African Queen: Hi Paul, your masterstroke with your tutorials is the way you explain what versions of the software you used and how to set up an environment that will use those versions. Too many KZbinrs show you a tutorial that worked, say, two years ago and now they won't because the software has been updated. This should mean that your tutorials will have a longer useful life. Thanks.
@CommunistBearFighter
@CommunistBearFighter 3 жыл бұрын
Absolutely agree! Got into programming due to his tutorials, and the fact that stuff just works without me having to spend hours trying to find solutions to problems all over the internet. However, I think it's good to try and update packages and python versions to latest after you've got it working on the version Paul is using at this point in time. For example, I'm on Linux and running all of this on Python 3.8 and latest version of all packages, and everything runs perfectly.
@erwinmaulana1
@erwinmaulana1 Жыл бұрын
African Queen! I have finished the lesson, and next trying to solve the home work. Thank you Sir.
@codecage9333
@codecage9333 3 жыл бұрын
African Queen! Watched it many times. Home work done, bur sorry I miss it at 11:30 EST.
@railcat7083
@railcat7083 3 жыл бұрын
At present I am also about half-way through the AI on Jetson Nano series, so getting into familiar waters here on openCV. I suppose at some point we will reach the rapids just as the old African Queen did. I am thoroughly enjoying both series! Very nicely done...
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
This then will be review for you for a while, but then I will take this a different direction in future videos.
@ke4est
@ke4est 2 жыл бұрын
African Queen. And I am legend! I am just now getting to these lessons, so I got some catching up to do, but will. Great video as always Paul!!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Wonderful!
@drzwithcrow6075
@drzwithcrow6075 Жыл бұрын
Copy & paste is soooo useful - you can duplicate a typo so often, so accurately, as many times as you want. But my windows are too big to prevent overlapping without manual resizing. I remember a few scenes from African Queen but not much more. It's great when history floats on past - I was on the Murray River quite a few years back and a paddle steamer towing barges went by on some event re-enactment. Just a few km downstream from where we were staying, there was a 'special' section of river (a hand-dug cutoff, that shortcut something like 12 km of river loop, so you can imagine the current through
@alfredcalleja450
@alfredcalleja450 8 ай бұрын
Hi Paul, "African Queen". Another great tutorial. I got the homework done okay but I got myself down another "rabbit hole" trying to incorporate Multiple Processing for each frame: I think I'll just park that idea for now and move onto the next tutorial. Thanks again.
@mohamedfarid7499
@mohamedfarid7499 3 жыл бұрын
thank you very much for your effort
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
So nice of you
@opalprestonshirley1700
@opalprestonshirley1700 3 жыл бұрын
Loved the African Queen movie. See ya tomorrow, Paul.
@endrefidje5698
@endrefidje5698 3 жыл бұрын
Managed to follow the lesson on my raspberry pi 4, 8 GB version, 64 bit OS. I use python 3.7.9 and it works fine so far with openCV. It seems quicker than your windows version as well, approx 5 sec from I click "run" till the windows show (managed to get 6 windows with different "filters") on my screen. Noticed latency increase as windows were added ... ;-)
@dule1635
@dule1635 3 жыл бұрын
African Queen. You are awesome, Sir. Thank you very much for your great work as always!
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
So nice of you
@neilausten9404
@neilausten9404 3 жыл бұрын
African Queen. Legend status claimed-done homework-4 on one page as requested. You explained this lesson so well that even a non IT 77 year old could understand
@neilcampbell6026
@neilcampbell6026 Жыл бұрын
Thank you Paul for all your classes. I fold up like a cheap Walmart lawn chair all the time, but it's fun trying. One of the questions I have and I understand that you may not be able to answer, but in all the while true loops throughout this course, you have code that moves images or creates other ROI and more moves in the loop. To me it sounds like every time thru loop it has to do all these moves, that the frame may be somewhere for a split second and them get moved. The eye cannot see this I suppose, but would it be better to create the windows outside the while loop first, then use the windows in the loop? Is this an engineer question? Maybe you suggest this in latter lessons. Anyway, I really learn a lot from your classes. Thanks
@tommymemed2651
@tommymemed2651 3 жыл бұрын
Hi Paul, loving this series. Followed your Jetson AI course also. Out of curiosity will this Opencv - python install access my gpu? Or will all the calculations be done on my cpu? oh yeah... Africa Queen ;)
@Delta7Smith
@Delta7Smith Жыл бұрын
Had trouble with my code before watching this, had everything right but out of order. Thank you, leaving this message for the algorithm. Almost forgot the African queen
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Great to hear!
@ardespmaker
@ardespmaker 3 жыл бұрын
African Queen. Just for info I was able to install opencv using pip directly from the terminal window of vscode into the venv. Also added the opencv intellisense extension which seems very good.
@bbamboo3
@bbamboo3 3 жыл бұрын
I appreciate your use of virtual environments and recommend replacing the steam engine on the African Queen with an outboard with some serious horsepower, the better to evade rapids.
@prashantkumar7788
@prashantkumar7788 2 жыл бұрын
African queen!! Your lessons are awesome Sir🙏
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Thank you! 😃
@CommunistBearFighter
@CommunistBearFighter 3 жыл бұрын
African Queen! Thanks a lot for another great tutorial! For mac and linux users, replace cv2.VideoCapture(0) with: cv2.VideoCapture('/dev/video0') Don't know what difference it makes, seems to be faster on my machine, and on my raspberry pi, VideoCapture(0) doesn't seem to work for some reason even though it works on my Ubuntu 20.04 main computer, albeit slowly.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Thanks for sharing!!
@panicartist6033
@panicartist6033 3 жыл бұрын
all working so far. using helios 300 laptop with the same logitec cam does take a good 30 secs to show the screen. AFRICAN QUEEN
@TheCourtoh
@TheCourtoh 2 жыл бұрын
African Queen. My camera has arrived!, looking forward to more lessons.
@jeff_wild
@jeff_wild 22 күн бұрын
African Queen. Working on a laptop, I had to figure out how to resize the frames so they would all fit on screen. I have Python versions 3.6, 3.7, 3.8, 3.9 installed but am going to use 3.12 and OpenCV version 4.10 for as long as that works.
@thenugget3671
@thenugget3671 3 жыл бұрын
african queen! awesome series so far, just as always
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Glad you like them!
@itterevanth4410
@itterevanth4410 Жыл бұрын
African Queen! So nice lecture Paul
@alexmcclead7012
@alexmcclead7012 2 жыл бұрын
Fun Project, Challenge wasn't too bad. African Queen
@peterkarlsson7801
@peterkarlsson7801 3 жыл бұрын
It works fine for me to use the build-in webcam in my Laptop. But when using my old USB webcam from Logitech, it take many many seconds before the camera starts to work. I was about to kill the program first time I tried, but then it started to work after 10 seconds. Once it started, it works fine.
@khelifk
@khelifk 6 ай бұрын
African Queen ! Great Lesson,Thank you Professor !!
@maggit13
@maggit13 2 жыл бұрын
African Queen! Thanks for the lessons Paul
@a.akhrif1492
@a.akhrif1492 Жыл бұрын
Very good explanation. Thank you -- African Queen
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Glad it was helpful!
@albeedoinstuff5509
@albeedoinstuff5509 3 жыл бұрын
African Queen!!! Got everything working as long as I leave the cam release part out..
@wayneswan3092
@wayneswan3092 2 жыл бұрын
So, this assignment should be easy for me since I've gotten most of the way through AI on the jetson nano! (I still gotta go back and finish that series too). African queen!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
It is actuallly good to do both series. Sometimes the second time through things reallly begin to make sense and stick.
@peterhartshauser5176
@peterhartshauser5176 3 жыл бұрын
African Queen. Thank you. Great lesson today.
@drzwithcrow6075
@drzwithcrow6075 Жыл бұрын
It is great when things run like they should first time (barring typos, of course)
@captaineverythingfun52
@captaineverythingfun52 2 жыл бұрын
I did the homework and took it a step further by adding a third coloured frame and a third grey frame
@kadhir5738
@kadhir5738 3 жыл бұрын
What is the difference between a command prompt and Windows Powershell?
@igortomic1525
@igortomic1525 2 жыл бұрын
Awesome lesson as always ! I was afraid that my web cam won't start becouse it's the same but he kick it on a first attempt. And off course : African Queen. 😀
@ICit123
@ICit123 3 жыл бұрын
You can't beat Humphrey Bogart and Katherine Hepburn on the African Queen. Great job!
@methark
@methark 11 ай бұрын
Your class is truly engaging, Paul. As someone transitioning from Java and C++, I must admit I harbored some reservations about Python. However, your instruction is reshaping my perspective :) I do have a question: Will this approach remain applicable in Python 11 when using the latest version of OpenCV? Thank you very much! African Queen
@methark
@methark 11 ай бұрын
PS: Till now, everything is working just fine with my laptop camera.
@mandamhlava9301
@mandamhlava9301 Жыл бұрын
I Am Legend. I struggled a bit, but managed to get working.
@yusufguler1662
@yusufguler1662 3 жыл бұрын
African Queen. Thank you sir the lessons are as great as always
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Thank you! 😃
@TheRealFrankWizza
@TheRealFrankWizza 3 жыл бұрын
I do have some weirdness. If I run a python program in the 3.6 venv that has an unused variable, it crashes with segmentation fault. I don't think that will be a big deal. The other environments are fine To be honest, the 3.6.9 programs from my jetson run on 3.9.6 anyway as far as I can tell. So if it does turn out to be a problem, I will try it in a different interpreter before worrying about it.
@pingwin36
@pingwin36 2 жыл бұрын
if anyone knows how to fix this, I am having a problem where intellisense on vscode doesn't work when I use the new interpreter
@leeg.1402
@leeg.1402 3 жыл бұрын
Thanks Paul, Great Stuff!! African Queen.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Thanks for listening
@jeremyo1457
@jeremyo1457 2 жыл бұрын
Hey everyone just a heads up, so i got an error saying “if cv2.waitkey(1) & 0xff == ord(‘q’): AttributeError: module ‘cv2.cv2’ has no attribute ‘waitkey’ I was worried because i am using a dell laptop using the webcam that is on the laptop, i am using “camera 0” so first i tried flipping through the numbers 0...1...2...3 and nothing worked. Then I noticed that i did “waitKey” wrong... i did not have the K capitalized. Make sure you do that. After I changed the K it started to work for me.
@asmanaim2132
@asmanaim2132 2 ай бұрын
HEY PAUL ; whenver i try to install open cv i got this error SSL: CERTIFICATE_VERIFY_FAILED .... any help please ?
@oleksiypshemyskiy7367
@oleksiypshemyskiy7367 3 ай бұрын
Hey Paul, aprreciate your videos very much. I have an issue with intellisense for cv2 - it simply doesn`t show almost no hints. I tried installing and uninstalling it. Did not help. Do you know what could be the reason?
@paulmcwhorter
@paulmcwhorter 3 ай бұрын
IT is a constant battle to get intellisense to work with cv2. as VS code upgrades, and as cv2 changes, seems it always reaquires a new tweak to get things working.
@oleksiypshemyskiy7367
@oleksiypshemyskiy7367 3 ай бұрын
@@paulmcwhorter Thanks. Had to upgrade cv2 to latest version for intellisense to work properly.
@johnstephenson4428
@johnstephenson4428 3 жыл бұрын
Video works for 2 seconds or less the goes away code seems correct???
@TheFoxy1971
@TheFoxy1971 3 жыл бұрын
African Queen - Thanks for a very clear tutorial👍
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Glad it was helpful!
@KM-hp3br
@KM-hp3br 3 жыл бұрын
if you do not have a webcam and you want to fully participate in the tutorials, you can look for how to use your phone as a webcam. I'm doing this rn and works really well
@Sean-sn1lc
@Sean-sn1lc 3 жыл бұрын
African Queen ... Mr. McWhorter :)
@victorwilliams5131
@victorwilliams5131 2 жыл бұрын
I found my issues i loaded some thing you didn't include and that what lead to my problem, i have fix them now.
@tobioflyhigh666
@tobioflyhigh666 2 жыл бұрын
omg i thought it didnt work coz im in a random laptop but i just havent put the >>quit() thing in the terminal silly me african queennnn i knew u were gonna make us do it all again. was scared cuz i was just copying u. thats actually my prob w the other tutorials tho. they dont give hws like u which means i dont feel pressured abt knowing how to do it by myself loll ill do it now EDIT: FINISHEDDDDD! i am legend
@richardruark6422
@richardruark6422 3 жыл бұрын
African Queen..... good lesson...onward and upward
@charlotteswift
@charlotteswift 3 жыл бұрын
I am legend (in an orange sweatshirt as I' m doing the 3D Graphics as well). I just guessed the coordinates of the windows and then adjusted them. There must be a better way, maybe the answer is on the African Queen.
@tobioflyhigh666
@tobioflyhigh666 2 жыл бұрын
i also guessed lmao
@imxheartz7846
@imxheartz7846 3 жыл бұрын
how can i make the window with the camera footage smaller so that 4 of them fit on the screen
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Will be covered in the next lessons. Stay tuned.
@rahulkashyap9241
@rahulkashyap9241 3 жыл бұрын
Hi Paul sir ! The word is African Queen.
@drfyannaz3233
@drfyannaz3233 2 жыл бұрын
Hello Paul, I could not locate the 3.6.6 64-bit('pyAI3.6':venv). I found the others for 3.7 and 3.9. I have repeated the steps several times, but no success. Maybe you can advise. Thank you.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Did you create the venv? if you did and it is not showing up, stop visual studio and restart it.
@drfyannaz3233
@drfyannaz3233 2 жыл бұрын
@@paulmcwhorter Thanks for the prompt reply. Solved.
@warrenscorner
@warrenscorner 2 жыл бұрын
AFRICAN QUEEN! My wife hates it when I watch those old movies but I love them. Hmm, Mr. Arnott was Boggie's character but I'm having a senior moment for the character Katherine Hepburn played. I believed he called her miss through a lot of the movie. I also can't remember what his first name was. I know she asked him at one point. Talk about digressing! I haven't gotten my web cam yet but (0) ended up being my laptop camera. These commands are very tricky and if you miss one little thing forget it.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
I rarely watch movies, but when I do it is an old one. Probably my top ten all time favorites 1) Ben Hur (original Charleton Heston one) 2) Tombstone 3) Braveheart 4) Ten Commandments 5) Master and Commander 6) King Arthur 7) Gladiator 8) Count of Monte Cristo 9) Signs 10) the Village 11) The Prestige 12) Passion of the Christ 13) Second Hand Lion 14) The Alamo (One with Billy Bob Thorton) 15) Back to the Future 16) The Outlaw Josey Wales 17) The Good the Bad and the Ugly 18) Silverado 19) Crocodile Dundee 20) Moonraker OK, I lied, that was 20
@ToniHayek
@ToniHayek 3 жыл бұрын
Thank you Paul, please if you explain why we put "& 0xff" after the waitKey() , African Queen
@nkuguy
@nkuguy 3 жыл бұрын
Great video, thanks! The African Queen.
@henkoegema6390
@henkoegema6390 3 жыл бұрын
I'm using Python 3.9.6 on Ubuntu20.04 with a Logitech camera and that is working fine. :-)
@CommunistBearFighter
@CommunistBearFighter 3 жыл бұрын
Using python 3.8.6 on 20.04 with builtin camera, everything works.
@MichaelWilliams-rf2jw
@MichaelWilliams-rf2jw 2 жыл бұрын
A couple notes: The logitech cam is slow as molasses in January, takes at least a minute before anything comes up. But the built-in cam on my laptop displays results in about 5 seconds, so I'm better off using that. I had 2 windows displaying the results in gray and color, but then for no reason I can see they just show pure black windows now. I googled but haven't found an answer for this.
@MichaelWilliams-rf2jw
@MichaelWilliams-rf2jw 2 жыл бұрын
Add note: in the next video Paul shows tips that make a huge performance improvement, and now I can use the webcam that he recommended. Very nice!
@yalicarmon4155
@yalicarmon4155 3 жыл бұрын
African Queen!!!!!! great video as always thank you!
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
You are so welcome
@mannatkaur1146
@mannatkaur1146 2 жыл бұрын
Please teach Django as well
@gb747gb
@gb747gb 8 ай бұрын
I uninstalled VSCode completely and reinstalled it with 0 extensions then installed the same version of Python (v2021.7.10....895)you had for IntelliSense autosuggestions to appear
@pauldgrey
@pauldgrey 3 жыл бұрын
I brought a C920 webcam today! (169 dollarydoos here in Australia). Works much better than my built-in laptop camera. Completed my homework ok. I had to resize images to fit on screen and, after some research, I used: cam.set(cv2.CAP_PROP_FRAME_WIDTH,320) cam.set(cv2.CAP_PROP_FRAME_HEIGHT,240) African Queen!
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Shhh . . . that is coming up in next lessons.
@LiamAllbright
@LiamAllbright 4 ай бұрын
African queen. I still am stuck on changing my directory to the folder that contains my VENV's, when I DIR, Into documents it shows nothing. I've been stuck on that this entire time, Can you suggest some possible fixes please?
@pabloulloa2590
@pabloulloa2590 9 ай бұрын
african Queen... thank you... your code is runing ok on mi desktop.
@edSabio572
@edSabio572 2 жыл бұрын
African Queen: Everything works as advertised...About the boat...It has seen better days...
@drfyannaz3233
@drfyannaz3233 2 жыл бұрын
Another Good Video. TQ___African Queen
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Thank you! 🤗
@bigbogeyface
@bigbogeyface 3 жыл бұрын
The boat "African Queen" was built in England in 1912 and used by the "British East Africa Company" from 1912 to 1968. 👍
@buniyaminadewusi8593
@buniyaminadewusi8593 Жыл бұрын
AFRICAN QUEEN After arduino, I'm here to learn more about AI and robotics
@marxmaiale9981
@marxmaiale9981 3 жыл бұрын
The Legendary Black Mamba would frequently get in through the African Queens window by the pile of brush and eat both of her bananas and garden fresh salad.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
That pretty much says it all.
@idkwhatiamdoing2389
@idkwhatiamdoing2389 Жыл бұрын
African Queen and I have done my homework all ready
@doctorzak
@doctorzak 10 ай бұрын
BOOM ... well, sort of! I'm unable to use python 3.6 - 2 years on from these tutorials it's no longer available. However, I've carried on using python 3.7 and so far seems to be working OK. Initially I thought the python program wasn't working until I realized the webcam window was opening in the background ... so I had to go looking for it. Also, it was taking about 1-1/2 minutes for the screen to appear - gradually increasing to 2-1/2 minutes as I attempted the 'homework'. Didn't finish the latter due to the delays but I get the general idea ... I'll catch up with that in the next video. Perhaps my laptop is due for a reboot. African Queen!
@joestanco4341
@joestanco4341 2 жыл бұрын
My Logi camera takes around 30 sec to come up, but works fine "AFERICAN QUEEN"
@aman-sood
@aman-sood 2 жыл бұрын
Did the homework. African Queen. Hey Mr Mcwhorter, I know I should have asked this earliar but what does the -m do while creating a virtual environment?
@sylvainletedeongolo7252
@sylvainletedeongolo7252 3 жыл бұрын
i used the webcam of my laptop and i have the following error. [ WARN:0] global C:\Users unneradmin\AppData\Local\Temp\pip-req-build-uzca7qz1\opencv\modules\videoio\src\cap_msmf.cpp (691) CvCapture_MSMF::initStream Failed to set mediaType (stream 0, (640x480 @ 30) MFVideoFormat_RGB24(codec not found) To fix it i use the instruction cam=cv2.VideoCapture(0,cv2.CAP_DSHOW) insteqd of cam=cv2.VideoCapture(0) and it work
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
In future lesson we will show how to set codec. Logitech cam works without it, but we will learn about this.
@sylvainletedeongolo7252
@sylvainletedeongolo7252 3 жыл бұрын
please sir the difference between Machine learning and Deep Learning
@charlotteswift
@charlotteswift 3 жыл бұрын
Hurrah!! I took my newly arrived webcam out of its box, plugged it in, waited until it had set itself up, ran the program and BOOM!! You always say that we need to have the same hardware and be running the same versions of the software as you in order to get the same results. I'm using a Logitech C270 instead of a C920. Could this be the reason why I'm getting a picture of a rather strange-looking woman instead of a chap in a mauve shirt? btw African Queen
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
At least wear a mauve shirt.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 2,2 МЛН
What's going on with Windows Laptops?
10:30
Marques Brownlee
Рет қаралды 2,6 МЛН
Getting Dial Up Internet in 2023!
16:50
Ionic1k
Рет қаралды 959 М.
6 Verbal Tricks To Make An Aggressive Person Feel Instant Regret
11:45
Charisma on Command
Рет қаралды 23 МЛН
How I'd Learn AI (If I Had to Start Over)
15:04
Thu Vu data analytics
Рет қаралды 766 М.
Accessing USB Devices and Webcams with OpenCV and Python
21:40
Nicholas Renotte
Рет қаралды 94 М.
Лучший браузер!
0:27
Honey Montana
Рет қаралды 1,1 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН