OpenCV TUTORIAL with Python Series #1 - Basic Grayscale - 1
Vložit
- čas přidán 26. 07. 2024
- A basic introduction on how to use OpenCV with Python
Guide: kirr.co/o51uoz
Mac Install guide: kirr.co/uux6ty
OpenCV Python Mac Install video: • How to Install OpenCV ...
Windows Install guide: kirr.co/pcbq03
OpenCV Python Windows Install video: • How to Install OpenCV ...
Linux install guide using Pi Awesome: kirr.co/sx77b7
NEW!! Slack Channel: kirr.co/n7xgvn
-----
Amazing Starts Small. Learn to build great products with code.
Enroll: kirr.co/ni5fia or Subscribe: kirr.co/7l2sv4/
-----
Questions? kirr.co/wmdnzz/
Suggestions? kirr.co/5d7m1r/
All of my step by step projects: kirr.co/ni5fia/
My equipment:
Laptop: amzn.to/2c965EL
4k Camera: amzn.to/2cb0JeS
Drone/Aerial Video: amzn.to/2cCUgLq
Flexible/Travel Tripod for DSLR: amzn.to/2d13rXi (I highly recommend this too: amzn.to/2ckauYr)
General Purpose Tripod: amzn.to/2d4xNUS
Webcam: amzn.to/2bZEc7I
Camera Mic: amzn.to/2cb0PTp
Studio Mic: amzn.to/2cCdNc3
Mic Arm (for Studio): amzn.to/2cCepyd
Shock Mount (for Studio): amzn.to/2c97uLN
Phone: amzn.to/2c97R8X
Tablet (and portable external monitor) : amzn.to/2c5Fqdx
External Hard drives: amzn.to/2c5FvxV
Headphones (mic used for travel recording): amzn.to/2c5GGNO
this is the best teacher regarding the opencv camera feature, thumbs up thanks
I really enjoyed this video lad. big thumbs up for me
Awesome video. Very simple and clear explanations on every step.
Thanks for the tutorials!
if the frame opens and then crashes then add this at the bottom of your code:(if is inside the while loop)
if cv2.waitKey(20) & 0xFF == ord('q'):
break
It helped me with the same problem.
Thnx faced the same problem
Thank u so much ....🧡
just solved this problem after 2hrs of researching, now when i see the comments, the first comment had the solution
Thank you for saving me a ton of googling!
thank you brother
Wow awesome Tutorial Sir!!
thanks you, awesome video very helpful!
Hello Sir! New subscriber here :D Hoping to learn a lot from you :D So far so good! More power!
That's an amazing tutorial. Please make another one.. Love from india
I rely enjoyed this one🧡
Amazing teacher. i wish i could meet you sir !!!
open cv with raspberry pi I want to see in very near future :)
Thank you a lot!
thanks man, awesome video very helpful! Also most program videos are dull thanks for not being monotone
You know it! I love what I do
Also glad I could help 🙌🏼
awesome......
Wow I keep on coming back to this tutorial. Just a question. How would importing a gstreamer feed work in windows with this method?
very nice
can you please upload a video on emotion recognition using facial expressions
Good Brother
And this is going to be my final year project.
God Bless u Bro
Hi, do have any tutorials for opencv camera calibration using python?
Goos job great tutorial create another one pls 😃😃😃
Thank you!
Idea: OpenCV and flask integration for remote viewing on a browser
What can I include to put all 4 window captures into a single window?
does cv2 contain an averaging method for grayscaling?
thankyou sir it was a wonderful tutorial moreover sir when i run the code its taking too much time to on the camera may i know why is this happening
Hi! I have a question as I cannot understand why this code behave differently on my side.
Following this basic code, instead of having a continious video feed in the "frame", when I run the python script, the VideoCapture(0) is executed then nothing happen, until I close my webcam.
When I do close the webcam, I have the frame window opening with the last frame from the video feed, I assume, displayed.
I do not understand why I do not get a continuously feed ?
If anyone has some idea / fix, it would be great!
Thanks alot!
best teacher everrrrr>>>>can you make some thin like attendance system that count people
Maybe you can put a camera, and that camera link to this code...when the camera record a face, it will find if there is any same face in a database, and if there is, then that person attendance is taken
Please make a video on how to setup a virtualenv on mac!!!
In ./Scripts/activate
What's inside the script folder and where is it
How do i get my DSLR to work with this????? i have tried everything!! I think you need to set the dslr as a video device but i cant find out how :( i am soooo frustrated with this i literally just want it to capture from my canon
Which ide are you using??
ret, frame = cam.read() # what is 'ret' for this line???
How about both? Time lapse and Facial Recognition. Great video by the way. I like the line by line
Cool! Thanks
what does ret refer to?
Dude, your playlist is backwards.
my frame so error that frame not responding. So please help me.
i am using jupyter notebook.
How to make screen sharing with pythons can u make videos on screen sharing with pythons? Please
I am getting an error that my frame(Not Responding).....What shall i do
same with me
Hi, im new to pytyon and also opencv...i have a question,
ret, frame = cap.read()
Why does this line takes two variables? And what does that "ret" is for?
cap.read() returns two values
Take this for example
x, y = 1, 2
print(x)
# outputs 1
print(y)
# outputs 2
It cal also be a tuple
x, y = (1, 2)
python 2 users may stuck at the mid.ex- not viewing frame . don't get rid.complete the code and then run.
Great Tutorial Sir..BTW am stuck in this step. The frame window is not responding, and showing a grey blank screen. Please help.
Maybe you need to add this at the bottom of your code:
if cv2.waitKey(20) & 0xFF == ord('q'):
break
It helped me with the same problem.
it worked thanks galaxy gaming
Thanks man
thanks, it worked :)
first like first comment
🙌🏼🙌🏼
i like your videos
thanks for sharing such technologies and tutorials
I cannot close the frame on Mac it is giving a spinning ball on the cursor
What is 0xFF ??
If you found the line `if cv2.waitKey(20) & 0xFF == ord('q')` confusing, then you weren't alone.
I don't see a legitimate need for the bitwise operator here. `if cv2.waitKey(20) == ord('q')` will work just fine.
It was said that sometimes the cv2.waitKey will return some wired values that go beyond 0-255, with this bitwise operation you ensure that the final product will not go beyond this range.
@@wayne4591 Oh, crap! That would explain a thing or two about oddities I've run into.
Thank you for your great work, i tried it after installing opencv but it says “importError : no module named cv2
download the cv2 module first and then try the same
You have to go to open a command line and type 'pip install opencv-python'
this code open the frame but suddenly it crashes the camera frame and unable to show video.
same here.....#frame(not responding) help
same here
add this at the bottom of your code:
if cv2.waitKey(20) & 0xFF == ord('q'):
break
It helped me with the same problem.
HARSH HARIA you’re the real mvp
My frame is not responding
My webcam(frame) crashes when i run the code, any sort of way to fix this?
add this at the bottom of your code:
if cv2.waitKey(20) & 0xFF == ord('q'):
break
It helped me with the same problem.
Dont forget to import Numpy as well
@@iArslanKhan camera blacks out after few seconds ,what to do ?
hello!
after running the "python camera-test.py" command, in my case, frame is displayed on the screen but it is not responding. It's only showing a grey screen... no image. On closing the frame, a dialog box is displayed with message, 'python is not responding'. Can anyone provide me the reasons behind it and possible solution?
i don't know the reason, but if you add the following to the end of your main loop it'll work :)
if cv2.waitKey(20) & 0xFF == ord('q'):
break
@@moritzp.2920 Please have a look here...docs.opencv.org/2.4/modules/highgui/doc/user_interface.html...It says "This function should be followed by waitKey function...." Probably because since the cv2.imshow() call is inside an infinite loop...you need a sort of sleep or wait mechanism so that there is a forced thread switch...and you get to see the snap taken by webcam..:-)
I want to learn open CV python from basic so is there any website tutorial or CZcams
This one is the basics...
What about reading the official documentation?
camera is shutting down and error report is generated
more
Bro its showing frame not responding then what to do.
add that interrupt snippet (waitKey and 'q'), which he adds later. It will work.
Can you help me fix error: (-215:Assertion failed) size.wi
dth>0 && size.height>0 in function 'cv::imshow'?Please!
im having the same error. did u fix it?
@@rawkstar952 Let you try to buy new webcam and conect with laptop?
@@HuyNguyen-nb6mf i fixed it as soon as i replied to you. i just forgot to put a 0 in the first method
I also get same error.
Help me out plz
I m not good in English so my question is. It is important that NUMPy should learn before OPENCV learn
It helps but not required
CodingEntrepreneurs thax
the audio is barely hearable
Your code is not available on your github account. Can u send it to me on my email pls?
Or can u paste the code here only?
open cv with raspberry pi I want to see in very near future :)