OpenCV Python Tutorial #1 - Introduction & Images

2024 ж. 16 Мам.
323 807 Рет қаралды

Welcome to a brand new series on OpenCV and Python. I'll start this episode with a quick introduction to OpenCV, in case some of your aren't familiar with it. I'll also talk about how to install OpenCV, loading an image into OpenCV, as well as manipulating an image within OpenCV.
💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code "techwithtim" algoexpert.io/techwithtim
📄 Relevant Documentation: opencv-python-tutroals.readth...
📝 Code For This Series: github.com/techwithtim/OpenCV...
📺 Fix Pip on Windows: • How to Install Pygame ...
📺 Fix Pip on Mac: • How to Install Pygame ...
🔍 Playlist: • OpenCV Python Tutorials
⭐️ Timestamps ⭐️
00:00 | Introduction & Series Overview
01:46 | Installation & Setup
05:45 | Loading an Image
07:56 | Displaying an Image
10:35 | Resizing an Image
12:45 | Rotating an Image
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
👕 Merchandise: teespring.com/stores/tech-wit...
🔗 Social Medias 🔗
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My KZhead Gear 🎬
🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
🕹 Tripod: amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): amzn.to/3oi0v8Z
☀️ Lights: amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): amzn.to/2TjXsih
💸 Donations 💸
💵 One-Time Donations: www.paypal.com/donate?hosted_...
💰 Patreon: / techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Images within OpenCV
- How to install OpenCV
- Python
- Computer vision
- Pip on Windows Mac
⭐️ Hashtags ⭐️
#OpenCV #Python

Пікірлер
  • YEAH YEAH YEAH YEAH GOOO TTIMMMM, PLEASE CONTINUE THIS ENTIRE SERIES

    @ojasdillikar4738@ojasdillikar47383 жыл бұрын
    • I hope he'll not ditch this along the way

      @raymondmichael4987@raymondmichael49873 жыл бұрын
    • i feel the same

      @pythonenthusiast9292@pythonenthusiast92923 жыл бұрын
    • Yes pls tim

      @vbgamingstudios5701@vbgamingstudios57013 жыл бұрын
    • @@raymondmichael4987 has that ever happened?

      @aaravgp1332@aaravgp13323 жыл бұрын
    • @@aaravgp1332, yes

      @raymondmichael4987@raymondmichael49873 жыл бұрын
  • I think this is the best looking coding video I've ever seen. Coding videos tend to be very dry, but the way you highlight the commands in that little popup window and direct the attention to what you're doing really makes the video feel good to watch. Kudos!

    @fabioafdo@fabioafdo2 жыл бұрын
  • I'll definitely be binge watching this series. Super clear, concise, and interesting. Perfect for beginners

    @jaredhorton1636@jaredhorton16363 жыл бұрын
  • It's official, tim can read every subscriber's mind. I was searching for this tutorial a few days back and here it is. Love you tim!

    @sakethgupta2885@sakethgupta28853 жыл бұрын
  • OpenCV is even easier to understand than I anticipated! Can't wait to see this series through - Thanks Tim!

    @call_a_mari@call_a_mari3 жыл бұрын
    • OpenCV is not easy....it's the art of teaching that you find anything easy or hard.

      @premagarwal_iitkgp@premagarwal_iitkgp2 жыл бұрын
    • @@premagarwal_iitkgp I was going to say the same thing! Sometimes I think I'm dumb because I can't understand something in math, but then I watch a calculus video on khan academy or something, and I instantly understand. This guy teaches it very well which makes it a whole lot more fun and I understand much better.

      @courageouscuber9278@courageouscuber92782 жыл бұрын
  • I’m so hyped for this series LETS GOOOOOO

    @rolandocruz1695@rolandocruz16953 жыл бұрын
  • Your tutorials are perfect for that initial exposure. Love your stuff Tim

    @derekwest8636@derekwest86362 жыл бұрын
  • Finally the video I wanted from you 😀❤️

    @Rishikesh-24@Rishikesh-243 жыл бұрын
  • This channel couldn't get any bigger. Thank you Tim for the regular uploads.

    @codewithlenny@codewithlenny3 жыл бұрын
  • Thank you Tim for starting this new OpenCV computer vision series. Looking forward to some unique and amazing projects related to it. Keep Going.

    @shantanuroy9408@shantanuroy94083 жыл бұрын
  • Yes, this is what i am looking for, please continue the episode.

    @ruthvikbheemidi@ruthvikbheemidi3 жыл бұрын
  • Just when I wanted to do an OpenCV project, Tim showed up!!!

    @benjaminaboagye9846@benjaminaboagye98463 жыл бұрын
  • Before I looked at OpenCV code without understanding a single thing I was so confused Now that I've understood the basics its started to become MUCH more clear Thanks a lot!

    @dagarotwitch8435@dagarotwitch84352 жыл бұрын
  • was waiting for this series from tim for ages

    @Phantom-fi8sc@Phantom-fi8sc3 жыл бұрын
  • Could not find a good opencv tutorial, thanks Tim! Please continue this series

    @vikaspal2799@vikaspal27992 жыл бұрын
  • Hi Tim, I've been following you for some time now and I think this is one of the best tutorial series you could create. I'm also University student and I wanna build my own project with text recognition so I would love to see some tutorials on TEXT RECOGNITION, bye!

    @dimitrijecabarkapa9085@dimitrijecabarkapa90853 жыл бұрын
  • Yeah!! Awesome series! 😎 I really want full stack computer vision projects with deployment. Thank you!

    @gustavojuantorena@gustavojuantorena3 жыл бұрын
  • Thank you Tim! Please continue your lectures- best stuff in youtube

    @stasandr872@stasandr8723 жыл бұрын
  • Every single video of Tim is priceless! I hope your dreams come true sir!

    @ardapy@ardapy2 жыл бұрын
  • Not gonna lie, I wanted to learn OpenCV, tried to learn on youtube a couple years ago, and decided to wait for time to upload. Already learnt a ton from the Django + react full-stack course :)

    @jamikemichelohia2615@jamikemichelohia26153 жыл бұрын
  • Please continue the course, your courses are the best❤️

    @NuwaHWeil@NuwaHWeil2 жыл бұрын
  • Its 1AM right now in India and I'm just casually binge watching your videos to take ideas for my next CV project. TWT is the best channel ever for all these machine learning and AI related projects and learning.

    @pratikshatheodore3008@pratikshatheodore30086 ай бұрын
  • Amazing, thank you so much for this series already! My suggestion for future topics is edge detection plus calculating the distance(s) between edges. For example, distance between center points of 2 edges, distances from one ending / starting point of edge A to ending / starting point of edge B. Cheers!

    @girugaymesh@girugaymesh3 жыл бұрын
  • Waiting for this. Finally please continue this series... Please upload more videos in this series❤️❤️❤️😀😀.. Want to learn this from so many months... Please upload more videos on this.... Go deep in open cv...

    @Dhanush-zj7mf@Dhanush-zj7mf3 жыл бұрын
  • Surely we would love it to continue..❤️❤️

    @denilbhatt1005@denilbhatt10053 жыл бұрын
  • This was actually quite interesting! very great first tutorial for beginners to opencv! Was able to follow along. Going on to Tutorial #2 :) Thank you for making these python videos!

    @Psychetwo@Psychetwo2 жыл бұрын
  • This is the series I have been wating for long time!

    @lucarampini6943@lucarampini69433 жыл бұрын
  • I have been looking for a really good OpenCV series for ages and when i found this by the amazing TWT, i was like this is amazing. I am going to be sharing this in a few coding servers i help in

    @ath0rus@ath0rus2 жыл бұрын
  • Amazing tutorial! Precise and concise. Thank you loads man

    @anirudhkumar7477@anirudhkumar747710 ай бұрын
  • OpenCv and its opportunities are countless and great, cant wait to see, hear and learn about it from you :)

    @Hazzel31337@Hazzel313373 жыл бұрын
  • Good stuff. Looking forward to the rest of the series.

    @rubyoffrails@rubyoffrails3 жыл бұрын
  • Just yesterday I started with opencv. This will be much better to understand it than the book I am using it hahahah. Thank you Tim big fan of your work.

    @salhjasa@salhjasa3 жыл бұрын
  • I wish tim could get an award. Dang it, am waiting for the 1M sub party!!

    @sakethgupta2885@sakethgupta28853 жыл бұрын
  • The series i was waiting for.i just wanted to know that in much days you would cover this series to much advanced level

    @manishbolbanda9872@manishbolbanda98723 жыл бұрын
  • Finally. Just the video series that I need.

    @droneguy69@droneguy692 жыл бұрын
  • Thank you for this series. Fantastic!

    @abrafgesvbeac3676@abrafgesvbeac36762 жыл бұрын
  • Most awaited series. Thank you Tim. ❤️ From India.

    @adrishmitra9809@adrishmitra98093 жыл бұрын
  • Looking forward for this series to grow. Please consider the following topics, would be great help. Image segmentation SLAM using open cv Image analytics

    @banerjeetathagat@banerjeetathagat3 жыл бұрын
  • Really nice explainations : short and clear. I'm more a C++ programmer and I'm astonished to see how concise python can be to manipulate arrays.

    @Wolf-if1bt@Wolf-if1bt Жыл бұрын
  • Perfect timing, Tim! Keep it up!

    @legalspiderman200@legalspiderman2003 жыл бұрын
  • Thanks tim You are an inspiration to all of us

    @alanmunoz3755@alanmunoz37553 жыл бұрын
  • Hi Tim. Excellent tutorial. Thanks for creating it.

    @jameswilkinson8851@jameswilkinson88513 жыл бұрын
  • Thanks TWT your channel is like a goldmine for lots and lots of us

    @yourmarketingbro@yourmarketingbroАй бұрын
  • I ALREADY USE OPEN CV, BUT THIS tutorial is quite practical for me, kudos TIM

    @py_tok5589@py_tok55893 жыл бұрын
  • Thanks for a tutorial on OpenCV!! Needed it a lot THANKS!!!!!!

    @amanparikh2009@amanparikh20093 жыл бұрын
  • please try to continue this tutorial we really need it and i like the way you explain good job i appreciate

    @belveloper@belveloper3 жыл бұрын
  • TIM, REALLY GOOD WORK BROTHER. KEEP ON, I REALLY LIKE OPENCV. YOU MADE THAT, THANK YOU!!!😀

    @shohjahonhamraqulov8439@shohjahonhamraqulov84393 жыл бұрын
  • Hi Tim, thanks for making these tutorial videos, really helpful in my project work. Will it be possible to make some tutorials related to image processing and image recognition? Particularly those on how to distinguish between overlapping images (e.g bright spots detected on camera)?

    @gourabchakraborty4064@gourabchakraborty40642 жыл бұрын
  • Let's go Been waiting for this series for ages

    @lifesgood5065@lifesgood50653 жыл бұрын
  • Wow! Just when i needed a tutorial on OpenCV, one just pops up! Great videos!!! Thanks

    @parthgoel1084@parthgoel10843 жыл бұрын
    • me 222222

      @ReMaX2013@ReMaX20133 жыл бұрын
  • I was just searching about it...and u come up with this... Awesome 😘

    @yehbruh667@yehbruh6673 жыл бұрын
  • Easy to follow as always - keep up the good work. Would be interesting to learn how to read, edit, and display video with opencv.

    @loganrowe1727@loganrowe17273 жыл бұрын
  • I already know Opencv but if tim will do a series for this. Damn I'll learn it again.

    @aHardReset@aHardReset3 жыл бұрын
  • Keep going i am really excited

    @anthonytoufic3790@anthonytoufic37903 жыл бұрын
  • Super excited for this!!

    @amandathompson9697@amandathompson96973 жыл бұрын
  • its kinda weird how this tutorial took so long to arrive keep it up man 😁

    @ihsanshafi1047@ihsanshafi10473 жыл бұрын
  • I love your channel, Man. Please do another great playlist

    @footballistaedit25@footballistaedit252 жыл бұрын
  • Thank you TIM Very clear explanation ❤️

    @ranianourelhouda6146@ranianourelhouda61462 жыл бұрын
  • Wonderful series and super psyched. Thanks a lot for starting this. One thing I’d love to see is object detection in a video content, whereby we could detect unknown (and known) objects in a video. If you could do something with that, I’d watch them fur.sure. Thanks and looking forewords to all the new vids.

    @septronic2010@septronic20103 жыл бұрын
  • Thank you so much super helpful tutorial

    @alexeiliska8196@alexeiliska81969 ай бұрын
  • wow this is so great. i tried learning opencv by reading some pdfs but it was boring so i searched it on youtube and found you

    @user-yl4zs7go6p@user-yl4zs7go6p6 ай бұрын
  • actually the time we put into the 'waitkey()' has unit of millisecond and your video is super cool !!!

    @phamminhhung3219@phamminhhung32193 жыл бұрын
  • Thanks Tim for this awesome video. I realised that the parameter passed in the waitKey function is in milliseconds not seconds and so to display the image for 5seconds, you'd need to write waitKey(5000). Thanks so much once again.

    @ftballhub@ftballhub2 ай бұрын
  • Amazing man I love your videos keep up the work

    @mrpog4644@mrpog46442 жыл бұрын
  • thanks for the tutorial, i wait for the rest

    @danylipsker@danylipsker3 жыл бұрын
  • Two months ago I defended my MA thesis. Topic: "Automatic recognition of stickers used in the production process." (Recognizing the number on the sticker) I investigated three different methods: OpenCV - matchTemplate, OpenCV - SIFT descriptors, and finally neural networks (tensorflow, convolutional neural networks). Problems to solve: rotated images, wrong perspective, etc. I would love to see something like this in your performance, as well as methods for recognizing text from photos. Nice tutorial!

    @320adikos@320adikos3 жыл бұрын
  • Bro i just started learning this and had no idea where to start! TYSM!!! 😃

    @haokaixuan@haokaixuan3 жыл бұрын
    • me too

      @tevzi06@tevzi063 жыл бұрын
  • Im 14 from UAE and u have helped me so much i just want to Thank You

    @user-cy8vm8mh7x@user-cy8vm8mh7x3 жыл бұрын
  • Yes Please make more videos in this series..

    @PradeepKumar-ld5ns@PradeepKumar-ld5ns3 жыл бұрын
  • Very interesting! Thank you very much Tim!

    @LibreLobo@LibreLobo3 жыл бұрын
  • very well explained. Pease make complete series

    @teerath1000@teerath10002 жыл бұрын
  • Hi there, thanks a lot for your helpful lessons. I will be watching this useful series on opencv.

    @aryacarbassi@aryacarbassi7 ай бұрын
  • Oh this is what i were was waiting

    @alexmboutchouang8281@alexmboutchouang82813 жыл бұрын
  • Waiting for this!

    @kewtomrao@kewtomrao3 жыл бұрын
  • Wow great timing I needed this

    @RedHeadphone@RedHeadphone3 жыл бұрын
  • waiting only for you my only reliable python bro...thanks for everything...!

    @abrarmasumabir3809@abrarmasumabir38093 жыл бұрын
  • best Quality of video as well as knowledge!! thnx brother 😁😎

    @CyberZyro@CyberZyro3 жыл бұрын
  • hello from Spain , thanks Tim for the video

    @Antonio_Ineba@Antonio_Ineba3 жыл бұрын
  • I recently started getting really hyped about learning AI thanks to the netflix series "Start-up" where the main character makes a really good visual recognition AI that can describe what it sees and that's why I started doing your tutorial on Flappy bird to learn a bit about neat ai. One thing I would love to see in this series of tutorial would be a project that can categorize somehow what it sees on the webcam, for example showing a train. I think ml5js can do something like that (I didn't learn it yet but I remember seeing something of the kind made by Dan Shiffman

    @godetarnaud1005@godetarnaud10053 жыл бұрын
  • Finally, thank you very much!

    @danielros7798@danielros77983 жыл бұрын
  • wooow this is super cool TIM keep up

    @stonixgraphics3624@stonixgraphics36243 жыл бұрын
  • Hey Tim, A big thanks for this series I was waiting for that for so long. I have watched other tutorials but they were so boring so thanks! I think it's gonna help a lot of peoples. Can you introduce a bit of TensorFlow in this series and how to make object detection with open cv? Big thumb up!

    @guillaumegillard8852@guillaumegillard88523 жыл бұрын
  • Yes we need more

    @gearluffy@gearluffy3 жыл бұрын
  • Waiting for a long time🎉🎉🎉

    @machinze_edits@machinze_edits3 жыл бұрын
  • superb explanation

    @akashkumarbehera2037@akashkumarbehera2037Ай бұрын
  • 14:25 this video WAS very interesting haha. Thanks! Pretty simple and basic introduction to OpenCV

    @glenn8781@glenn87812 жыл бұрын
  • Thanks for the video! 😄

    @coderrishav@coderrishav3 жыл бұрын
  • u have a nice voice, bro...btw nice tutorial... ive recommended your channel to others...respect from India;) u r the best!!

    @adithyanbenoy5643@adithyanbenoy56433 жыл бұрын
  • def be_positive: message = "keep it up man, your tutorials are so good and easy to understand" print(message + "

    @wariare12world95@wariare12world953 жыл бұрын
    • syntax error XD @wariare12 world

      @bxr4231@bxr42313 жыл бұрын
    • in python the true is written True

      @danhabib3441@danhabib34413 жыл бұрын
    • stack overflow of positivity

      @henrytheswimmer9453@henrytheswimmer94533 жыл бұрын
    • Wouldn’t work

      @matthewtodd1743@matthewtodd17433 жыл бұрын
    • infinite loop love it haha need the () in the function tho.

      @ericcrevling3759@ericcrevling37593 жыл бұрын
  • I hope you continue this tutorial. It definitely add a fun and exciting skill to any Python learner even if it's not the major of interest. I have a question: does OpenCV substitute Pillow? Thank you very much.

    @modaryaghi@modaryaghi3 жыл бұрын
  • You are awesome Tim.

    @jitx2797@jitx27973 жыл бұрын
  • continue this serie !!!!!

    @amovinci2539@amovinci25392 жыл бұрын
  • Thnx for this series TIM, I'm grateful that I know you 😅 (on YT)

    @jayrajsingh5283@jayrajsingh52833 жыл бұрын
    • Would be great if you include few of these projects in this series; 1. Virtual Drums a virtual drum that you can play by using a stick in the air. 2. Face Recognition 3. Selfie capture app ( takes selfie when you smile)

      @jayrajsingh5283@jayrajsingh52833 жыл бұрын
  • great tutorial as always

    @alexanderkalchev188@alexanderkalchev1882 жыл бұрын
  • Great tutorial Tim

    @nomarkunsama2691@nomarkunsama26912 жыл бұрын
  • I am impressed!

    @Lucifer-jl9vh@Lucifer-jl9vh Жыл бұрын
  • Almost everyone on KZhead finish an opencv course by doing facial recog using haar cascade.....would be interesting and unique to see you teach something new and something epic.

    @veerajaveeraesh4356@veerajaveeraesh43563 жыл бұрын
  • I find it's good since these are basics

    @satishpatibandla@satishpatibandla2 жыл бұрын
  • thank u for the tutorial love it

    @georgekhabaze6619@georgekhabaze6619 Жыл бұрын
  • BEST TUTORIAL

    @chriskapis1690@chriskapis16903 жыл бұрын
KZhead