OpenCV tutorial for beginners | FULL COURSE in 3 hours with Python

2024 ж. 16 Мам.
47 201 Рет қаралды

Welcome to this 3 hours course on OpenCV with Python. This course is ideal for beginners in OpenCV and computer vision!
Enjoy!
Code: github.com/computervisioneng/...
00:00 Intro
00:57 Lesson 1: What are images?
09:29 Lesson 2: Input / Output
28:12 Lesson 3: Basic operations
38:57 Lesson 4: Colorspaces
51:39 Lesson 5: Blurring
1:06:56 Lesson 6: Threshold
1:22:13 Lesson 7: Edge detection
1:31:31 Lesson 8: Drawing
1:45:17 Lesson 9: Contours
2:01:24 *Bonus lesson*
2:09:30 Project 1: Color detection
2:28:48 Project 2: Face anonymizer
3:10:32 Outro
#computervision #opencv #computervisioncourse #opencvcourse #machinelearning #python

Пікірлер
  • Did you enjoy this video? Try my premium courses! 😃🙌😊 ● End-To-End Computer Vision: Build and Deploy a Video Summarization API bit.ly/3tyQX0M ● Hands-On Computer Vision in the Cloud: Building an AWS-based Real Time Number Plate Recognition System bit.ly/3RXrE1Y ● Machine Learning Entrepreneur: How to start your entrepreneurial journey as a freelancer and content creator bit.ly/4bFLeaC All my premium courses are available to the Computer Vision Experts in my Patreon. 😉 www.patreon.com/ComputerVisionEngineer

    @ComputerVisionEngineer@ComputerVisionEngineer8 ай бұрын
  • Thanks for sharing your OpenCV knowledge

    @behrangsis7898@behrangsis78984 ай бұрын
  • I am brand new to OpenCV...you are such a great instructor. Thanks a lot.

    @anibalsancheznuma3133@anibalsancheznuma3133Ай бұрын
  • Thank you for this tutorial and for taking the time to explain I do agree when you say that sometimes you can use a few lines using powerful functions. So simple it's genius!

    @tonatiuhmendoza6765@tonatiuhmendoza67653 ай бұрын
  • One of the best tutorials about OpenCV I've seen! Keep up the good work brother!

    @WelcomeToMyLife888@WelcomeToMyLife888 Жыл бұрын
    • 😊Thank you. I am happy you enjoyed it! 😃

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • Hello, Fellipe! Thank you very much for your great work 🙏 it is awesome

    @user-be7cb6cn9y@user-be7cb6cn9y Жыл бұрын
    • 😃Thank you! Glad you like it. 😊🙌

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • First of all, thank you very much for your wonderful work in sharing your knowledge... I confess that I'm a beginner and I've never programmed in my life, I'm suffering a lot, but I see that with each step I learn a little, I still have a lot of doubts, but that's ok, I'm absorbing the knowledge and who knows, I'll improve, but I'm extremely grateful, very thank you great master.

    @ghostwanted5510@ghostwanted55104 күн бұрын
  • You are just amazing !! Thank you so much for all the efforts 🙂

    @shwetabhat9981@shwetabhat9981 Жыл бұрын
    • 😃 You are welcome, Shweta! 🙌

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • Thank you sir , this tutorial helped me lot 😊

    @abhirupmukherjee7780@abhirupmukherjee77802 ай бұрын
  • This is the best tutorial I've even seen thankyou so much. ❤

    @anuradha3868@anuradha38682 ай бұрын
    • You are welcome! Glad you enjoyed it! 😃🙌

      @ComputerVisionEngineer@ComputerVisionEngineer2 ай бұрын
  • You have the best computer vision channel in youtube, i love your contents and you are the best teacher!! thanks a lot Fellipe!

    @itaydagan7459@itaydagan7459Ай бұрын
    • Thank you for your support! 😃🙌

      @ComputerVisionEngineer@ComputerVisionEngineerАй бұрын
  • Thank you very much ! This is an amazing tutorial !!!

    @Padmaprabhan2004@Padmaprabhan20049 ай бұрын
    • You are very welcome!! 😃🙌

      @ComputerVisionEngineer@ComputerVisionEngineer9 ай бұрын
  • great work thank you. one of the best teacher I ever seen. thank you again and again

    @kanishkawijayananda6957@kanishkawijayananda69576 ай бұрын
    • Thank you for your kind words. I am glad you enjoyed the video! 😃🙌

      @ComputerVisionEngineer@ComputerVisionEngineer6 ай бұрын
  • These course deserves millions of views

    @elyalotfali5791@elyalotfali5791Ай бұрын
  • Thanks for the videos! They're very helpful!

    @jonnythrive@jonnythrive6 ай бұрын
    • You are welcome!

      @ComputerVisionEngineer@ComputerVisionEngineer6 ай бұрын
  • Very helpful and inspiring!

    @sizeli7120@sizeli71208 ай бұрын
    • Thank you! Glad you enjoyed it! 😃💪

      @ComputerVisionEngineer@ComputerVisionEngineer8 ай бұрын
  • Hello sir! I want to express my sincere gratitude for your teaching and conviction in explaining these concepts. Thank You sir, looking forward to learning more and upskill. Subscribed!👌🤘

    @kaustubhmangalam4294@kaustubhmangalam42942 ай бұрын
  • awesome man love your energy

    @IsfhanAhmed@IsfhanAhmed Жыл бұрын
    • Hey Isfhan, I am glad you enjoyed it! 😃 Energy is what software development and engineering is all about! 💪🔥⚡

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • Amazing sir ✨ thanks for such amazing tutorial ✨

    @numanijax939@numanijax939 Жыл бұрын
    • You are welcome, Numan! I am glad you enjoyed it! 😃💪

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • I was suffering to learn computer vision from last 2 months after that I found your videos . And up to now according to my opinion you are the best teacher of computer vision . I also take many paid courses but they are also not able to add that much value how much you add . Thank you very much . God bless you sir...

    @PCD1387@PCD13874 ай бұрын
    • Thank you!! So happy you enjoy the content and find it helpful! 😃🙌

      @ComputerVisionEngineer@ComputerVisionEngineer4 ай бұрын
  • thanks

    @DerinMalik@DerinMalik16 күн бұрын
  • At 24:06 if we are directly taking while True: , then how it will consider ret as boolean as we haven't initialized it yet .

    @satypk8664@satypk86643 ай бұрын
  • Thank you very much for the extensive tutorial! So simply explained. Maybe you can also do a tutorial like this one on YOLO. 🙂

    @publishyou@publishyou3 ай бұрын
    • You are welcome! Do you mean with ultralytics yolov8? Or other versions of Yolo?

      @ComputerVisionEngineer@ComputerVisionEngineer3 ай бұрын
  • Best my man

    @burongkiu@burongkiu Жыл бұрын
    • Thank you so much for your support! 😊🙌

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • My brain: jump to bonus lesson 💀 Ahh I knew it'll definitely be great tutorial, as you said "75% of CV problems are solved using opencv" and now you've given a clean tutorial of it. Thank you so much🙌🏻

    @sreekartammana@sreekartammana Жыл бұрын
    • Hey Sreekar, I am so happy you enjoyed it! 😃 Yeah, simple image processing techniques based on OpenCV are way more powerful than we usually think! 💪🔥

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • Thank you sir😊

    @digvijaysingh1285@digvijaysingh1285 Жыл бұрын
    • My pleasure! I am happy you enjoyed it, Digvijay! 😃🙌

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • Make a video of deep fake detection using the face forensics++ dataset(image and video) if possible. And how to deploy this model and integrate into a website or mobile app.

    @forlanbeckham1504@forlanbeckham15046 ай бұрын
  • Yo! Looks like I found my OpenCV mentor 😉

    @cyb0rg14@cyb0rg149 ай бұрын
    • 😃💪

      @ComputerVisionEngineer@ComputerVisionEngineer9 ай бұрын
  • Thank you for the tutorial, it so well organized, there are other tutorials but way too long and scattered.

    @jokem7897@jokem7897Ай бұрын
  • Hello, Felipe. I noticed that when you hover over the images, with the mouse pointer, used in your examples, you get the screen the X,Y coordinates and RGB values at the bottom of the image window for the pixel depending on where the cursor is placed on the image. How is this achieved? Excellent tutorial by the way, thanks!

    @rickware4793@rickware4793 Жыл бұрын
    • Hey, thank you! That is a built in feature of the visualization library I was using. If you execute the same code as I did in the video you should be able to see it too. 🙌

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
    • @@ComputerVisionEngineer which visualization library are u using sir?

      @swagatbaruah522@swagatbaruah52210 ай бұрын
    • It's the library opencv uses by default and that is matplotlib (I think)

      @cyb0rg14@cyb0rg149 ай бұрын
  • cool video)

    @user-hw3kt5ln6t@user-hw3kt5ln6t3 ай бұрын
  • thank you soooooooooooooo much

    @user-xn5xc2wf9p@user-xn5xc2wf9p6 ай бұрын
    • You are welcomeeee! 😃🙌

      @ComputerVisionEngineer@ComputerVisionEngineer6 ай бұрын
  • Hi master ....in half of tutorial video ...when you are teaching color detection ..and after you use util library ..this library don't work for me ..I need replacement solution ...thank you .

    @user-xn5xc2wf9p@user-xn5xc2wf9p3 ай бұрын
  • Great tutorial! How could I get the image windows to show the RGB values? I am using windows 11 and pycharm...

    @JSIIC@JSIIC6 ай бұрын
    • It is not shown with imshow?

      @ComputerVisionEngineer@ComputerVisionEngineer6 ай бұрын
    • No... does it have to do with what is the default app that is opening these image/video windows?@@ComputerVisionEngineer

      @JSIIC@JSIIC6 ай бұрын
  • Hello Fellipe, would it be possible to provide info/video on setting up Python, OpenCV, Mediapipe on a MacBook M2?

    @RakeshSalian@RakeshSalian7 ай бұрын
    • Oh I am a Linux user, not sure if I can make a video about that. But I am sure there are other videos on KZhead about how to set it up on a Mac. Have you searched for it? 🙌

      @ComputerVisionEngineer@ComputerVisionEngineer7 ай бұрын
    • @@ComputerVisionEngineer Thanks for your reply. Yes I tried searching, but unable to find any which shows setting up on new Mac M2. I recently bought and struggling to do installation. I did install Python, OpenCV but mediapipe is where I got stuck.

      @RakeshSalian@RakeshSalian7 ай бұрын
  • You should add this to your playlist bro, idk if you made such videos

    @hendihart5195@hendihart51957 ай бұрын
    • Sure, which playlist are you referring to?

      @ComputerVisionEngineer@ComputerVisionEngineer7 ай бұрын
  • Best brother best.

    @Intellectualmind4@Intellectualmind4 Жыл бұрын
    • Hey Dipesh, thank you for your support! 😃💪

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • Really great content for learning OpenCV. Thank you so much so such. I have a querry about XY cordinates and their RGB info below the visualizing window. Actually, I am unable to see on my window. If you can help it ll be highly appreciated.

    @hatimkhan8339@hatimkhan83398 ай бұрын
    • Try to use matplotlib, as described here: stackoverflow.com/questions/59710972/cant-i-check-the-entire-or-specific-pixel-value-of-the-image-array-in-cv2-imsho

      @ComputerVisionEngineer@ComputerVisionEngineer8 ай бұрын
  • Ciao Filippo, how to enable cursor position on image below the window? I use windows, and i can see only the picture(lesson 3)

    @shk5764@shk5764Ай бұрын
    • Hi, cursor position may not be available in windows using cv2 imshow, try to visualize the image using matplotlib instead.

      @ComputerVisionEngineer@ComputerVisionEngineerАй бұрын
    • Thank you!

      @shk5764@shk5764Ай бұрын
  • sir how are you getting that x and y coordinates of your cursor under the image window 🤔

    @Tan_cannon@Tan_cannon6 ай бұрын
    • It is the default output when using cv2.imshow. Don't you see it too? If not, maybe it is because I am using Linux. 🙌

      @ComputerVisionEngineer@ComputerVisionEngineer5 ай бұрын
    • @@ComputerVisionEngineer may be mine is windows 😐, anybody else having the problem

      @Tan_cannon@Tan_cannon5 ай бұрын
  • Takk!

    @OleBSrhus@OleBSrhus4 ай бұрын
    • Thank you for your support! 😃🙌💪

      @ComputerVisionEngineer@ComputerVisionEngineer4 ай бұрын
  • I started to love you

    @DerinMalik@DerinMalik14 күн бұрын
  • Is this course important for the process of car crash detection project?

    @waleedgamal@waleedgamal5 ай бұрын
    • Opencv is a very important skill to work in computer vision project. 🙌

      @ComputerVisionEngineer@ComputerVisionEngineer5 ай бұрын
  • Can we do this from Vscode or do we need Pycharm?

    @smartjackasswisdom1467@smartjackasswisdom1467 Жыл бұрын
    • Yeah, sure, as long as you can run Python you can use Vscode or any other IDE. 💪

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • I am ur big fan sir. Could you please suggest me which method I have to apply for" detection of pinholes(very tiny holes) in aluminum foil" I am absolute beginner please guide me

    @kamrangul2876@kamrangul2876 Жыл бұрын
    • Hey Kamran, thank you for your support! 🙂 It all depends on your data and the requirements of your project, but from the top of my mind I can think in two different approaches: if pinholes are from a different color than the aluminium around them you could try with color detection; if pinholes are 'big enough' and 'distinct enough' from everything around them and everything else in the frames, you could try with an object detector based on something like yolov8. But again, it all depends on the data and your specific requirements. Let me know how it goes! 😃💪

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
    • @@ComputerVisionEngineer thanks dear sir . basically I want to do real time(video processing) detection and counting of pinholes in aluminum foil(my semester project).the mechanical structure contains roller that will fold and unfold the foil and between the rollers there be will a dark chamber because the pinholes are very tiny (and some are large too) so I want to make the tiny holes visible by passing light through it in a dark chamber . When the holes spots became visible in the dark chamber camera will take an image. I think I should process only black and white images not colourful. Should I also apply some filter or only yolo V8 is sufficient . Thanks again

      @kamrangul2876@kamrangul2876 Жыл бұрын
    • @@kamrangul2876 passing light through the foil to highlight the pinholes is a very good idea! A threshold may help you to get the pinholes once they are highlighted.

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
    • @@ComputerVisionEngineer do u have videos on thresholding topic

      @kamrangul2876@kamrangul2876 Жыл бұрын
    • Yes, a lesson of this course is about thresholding.

      @ComputerVisionEngineer@ComputerVisionEngineer Жыл бұрын
  • best tutorial.. next video DXCAM screen capture and a bot to play flappy bird game, not create ,, play it (automation)

    @ApexArtistX@ApexArtistX6 ай бұрын
    • A bot to play flappy bird with computer vision would be awesome! I will look into it. 🙌

      @ComputerVisionEngineer@ComputerVisionEngineer6 ай бұрын
  • I think choosing a specialization is a big problem. How can I do that?

    @phamduyaaaa@phamduyaaaa4 ай бұрын
    • Hi, do you mean a specialization in computer vision?

      @ComputerVisionEngineer@ComputerVisionEngineer4 ай бұрын
    • ​@@ComputerVisionEngineer Sure, but I am taking care of job opportunities in the future.

      @phamduyaaaa@phamduyaaaa4 ай бұрын
  • can i detect other fruits ?

    @saitnyeinnaingsait4550@saitnyeinnaingsait45506 ай бұрын
    • Sure! 🙌 🍏🍊🍓

      @ComputerVisionEngineer@ComputerVisionEngineer6 ай бұрын
  • mastika mastika

    @northingenn@northingenn2 ай бұрын
  • RAHMAT

    @poseydon_27@poseydon_274 ай бұрын
    • Thank you. 🙂

      @ComputerVisionEngineer@ComputerVisionEngineer4 ай бұрын
  • cv2.error: OpenCV(4.8.0) /io/opencv/modules/imgproc/src/shapedescr.cpp:315: error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function 'contourArea' solution pls

    @khandareshubham5199@khandareshubham51998 ай бұрын
KZhead