OpenCV Python Tutorial #2 - Image Fundamentals and Manipulation

  Рет қаралды 118,331

Tech With Tim

Tech With Tim

Күн бұрын

Welcome to the second video of the series on OpenCV and Python. I'll start this episode with Image Manipulation, how images are represented in the computer. I'll also give you information on how images work as they are going to be very important for this series.
💻 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 | Intro
01:45 | Image Representation
04:02 | Values that Represent our Pixels
07:20 | Accessing Pixel Values
08:45 | Changing Pixel Colors
11:37 | Copying & Pasting Parts of Image
15:07 | Outro
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 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 KZbin 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
- Image Manipulation OpenCV
- Image Fundamentals OpenCV
- Python
- Computer vision
- Pip on Windows Mac
⭐️ Hashtags ⭐️
#OpenCV #Python

Пікірлер: 99
@raghavgupta6446
@raghavgupta6446 3 жыл бұрын
I really hope he completes the series and does not drop it midway.
@dualspace5415
@dualspace5415 2 жыл бұрын
Thanks for taking the time to explain how the numpy array elements correlate to the image pixel positions. Super simple but super helpful!
@kunalbhatt4333
@kunalbhatt4333 3 жыл бұрын
You explain the concepts really well in a student-friendly manner! I was trying to learn openCv for my college project but was getting intimidated by the other tutorial videos..........yours are VERY HELPFUL! ,........................................................................................keep it up!
@pushkarajpalnitkar1695
@pushkarajpalnitkar1695 3 жыл бұрын
Awesome graphics during the video. Excited for the series. Really appreciate the efforts you are putting for the viewers. Great videos as always.
@TechWithTim
@TechWithTim 3 жыл бұрын
Thanks a ton!
@spyrosdev2533
@spyrosdev2533 3 жыл бұрын
Keep it up! Great work, Always loved your content, inspired me to start my own channel, and still teaching me great things! Thanks a lot!
@codeforcoders69
@codeforcoders69 3 жыл бұрын
Who the hell disliked this knowledge video
@miguelnuno928
@miguelnuno928 3 жыл бұрын
A stupid person
@ananthramvijayaraj4554
@ananthramvijayaraj4554 3 жыл бұрын
@@miguelnuno928 IKR
@zombiekiller7101
@zombiekiller7101 3 жыл бұрын
Only a 0 iq person who didn't understand this video will dislike it 😂
@angelotsk3173
@angelotsk3173 3 жыл бұрын
Thanks Tim, this Serie is very interesting .. please do more especially : batch images processing and face recognition , cropping and labeling faces
@varun2716
@varun2716 3 жыл бұрын
Most of the youtubers told me, be good at one thing weather its cyber security, web development or machine learning and Al. But are excellent in both I follow everyones advice or try to be like you
@anirudhkumar7477
@anirudhkumar7477 10 ай бұрын
Amazing stuff! Thank you for the precision
@JOKman87
@JOKman87 3 жыл бұрын
Love this series of open CV ❤❤
@Shape1t
@Shape1t 3 жыл бұрын
Was doing a project for my wife with images and this video just went live. Awesome!
@jamesgilmore2389
@jamesgilmore2389 5 ай бұрын
Excellent video. Thank you.
@cwansu
@cwansu 3 жыл бұрын
Thanks a lot sir🙏 please upload more videos of this series.
@tonietwojekonto5219
@tonietwojekonto5219 3 жыл бұрын
Really nice and easy tutorial, thank you for this
@fogsterded
@fogsterded 3 жыл бұрын
Thanks for the subject and for the quality ! 😃🔥🔥
@rolandocruz1695
@rolandocruz1695 3 жыл бұрын
Yessir, more please these are perfect!
@rushikeshgandhmal
@rushikeshgandhmal 3 жыл бұрын
Please cover all necessary basics of openCv. Appreciate your efforts !!
@mdammar9265
@mdammar9265 3 жыл бұрын
I am a fan of yours. Keep up the good work. 1mil soon
@juliuscaesar467
@juliuscaesar467 3 жыл бұрын
thanks for this tutoriel , looking for a future tutorial about OCR techniques, please
@davidcarlson2481
@davidcarlson2481 2 жыл бұрын
Nice work Tim! ( It should be noted though, @5:45, changing from 255 to 128 will make it a darker blue, not lighter.)
@ultramadscientist
@ultramadscientist 2 жыл бұрын
For those who are wondering, in order to make a lighter blue you can keep blue channel 255 and make the red and green channels higher (i.e. bring the entire pixel closer to white)
@samdaly1382
@samdaly1382 3 жыл бұрын
I'm doing OpenCV right now at school hahaha, it's so powerful. I'm even using it for my honours project
@riathezeita
@riathezeita 7 ай бұрын
This is so helpful. You are amazing
@TheBeast-qm4de
@TheBeast-qm4de 3 жыл бұрын
Thx plz continue this series
@LibreLobo
@LibreLobo 3 жыл бұрын
Very cool and fun!! Thank you !!
@dirkjensen935
@dirkjensen935 Жыл бұрын
Critically undersubbed, posting a comment to boost engagement!!! Great tutorials man, currently building a timetable system for my old man and needed someway to graphically build a time line image. Thought I'll pick whatever package that I can find a good youtube series for. so open CV for me. ty
@howarddelosreyes463
@howarddelosreyes463 2 жыл бұрын
please continue this series
@chrismckinley3110
@chrismckinley3110 3 жыл бұрын
Having the computer play a game with using opencv as its "eyes" would be really interesting
@taiwooluwasegun9631
@taiwooluwasegun9631 3 жыл бұрын
Hay men in other tutorial s I watch they all speak different thing so I am convinced ,but since numpy and opencv are related I think yeah great
@dokmuoh33
@dokmuoh33 3 жыл бұрын
i'm interested in texture synthesis, specially using wang tiles. There's an article by cohen called "Wang Tiles for image and texture generation," which seems very clear about how the program should be written, but I yet have no idea how to start doing it. Maybe you could mention something about it, or give some hints?
@finix7419
@finix7419 7 ай бұрын
highly appreciated
@medicalpump9275
@medicalpump9275 3 жыл бұрын
Excellent
@user-zd6tu9zw2z
@user-zd6tu9zw2z 2 жыл бұрын
Thank you very much especially for the image numpy array representation. I didn't get how the array worked and everyone who tried to explain it, they didn't actually explain it. And what do you think I found that gem when I wasn't searching for it
@kaushikreddy6357
@kaushikreddy6357 3 жыл бұрын
Love you videos :)
@py_tok5589
@py_tok5589 3 жыл бұрын
lovely Timmie
@whm3317
@whm3317 2 жыл бұрын
great video! Can anyone tell me why I got an error when trying to change the top 100 rows if I give the pixel its 3 values to change? If I use 4 values (just doing the random.randint(0,255) 1 more time than tim did in the video) it works how its supposed to.
@taiwooluwasegun9631
@taiwooluwasegun9631 3 жыл бұрын
You mean I can generate my own image wow that good to know
@Mr_Gradak
@Mr_Gradak 3 жыл бұрын
I remember, couple months ago, i was messing around with those pixel values, creating hidden messages inside pictures. Then another code for decrypting it. Just tought I'd share, since it's quite interesting thing you can actaully share with your friends. I made console version, wich you control with simple commands. Basicly you'd say: i want to encrypt this {_message_} to this {_picture_} using this {_security code_} which is just some number you come up with that controls wich pixels will get changed. (Because changing the same pixels all over again won't remain secret for long, right? :D ) And then the other side would just say: I want to decrypt message in this {_picture_} using this {_security code_} (same one as used for encrypting) and it will spit out the message.
@coompiler9029
@coompiler9029 3 жыл бұрын
That sounds interesting. Could you please share the code so that I can try it out?
@vihangpathak9759
@vihangpathak9759 3 жыл бұрын
Hey tim please continue this series with tensorrt,cuda
@samatharu9103
@samatharu9103 2 жыл бұрын
The "Relevant Documentation" - link in your description seems to not work anymore - just so you know
@AbdolazimHasseli
@AbdolazimHasseli 2 жыл бұрын
Nice. How to capture image from camera?
@erfansadeghinezhad9780
@erfansadeghinezhad9780 3 жыл бұрын
nice 😍
@dimitrijecabarkapa9085
@dimitrijecabarkapa9085 3 жыл бұрын
Can you make video on OCR?
@JoshelinRico
@JoshelinRico 3 жыл бұрын
Does that mean that the Resize function is removing specific elements from the array?
@muhammadghazy9941
@muhammadghazy9941 2 жыл бұрын
I got 4 channels in my png. Is it CMYK or something ? Does the value also range from 0 to 255 too ?
@romeogaming6424
@romeogaming6424 6 ай бұрын
thank you so f*** much!
@pranaygundu
@pranaygundu 3 жыл бұрын
hey "tech with tim youtube ":) , I just started open cv course and I am really enjoying it :). but should I need to master the math behind openCV functions ???? to be a good programmer .........whatever :) ...........
@danyhermawan7654
@danyhermawan7654 3 жыл бұрын
Tim, i need your help! I want to convert separate pdf files in a folder into separate text files in separate folder in python but always failed, please let me know how to do that...
@hakancosar9267
@hakancosar9267 3 жыл бұрын
pls do not stop
@9nekanshjaiswal612
@9nekanshjaiswal612 Жыл бұрын
@TechWithTim I'm gettign the following error when i try to mainpulate the image img[100:450 , 500:900] = tag ValueError: could not broadcast input array from shape (200,500,3) into shape (350,400,3)
@Magns-AI-m
@Magns-AI-m Жыл бұрын
Can we use any other tool to get the location of the object and then use open cv
@taiwooluwasegun9631
@taiwooluwasegun9631 3 жыл бұрын
Hay Tim how can I use machine learning with opencv
@queueoverflow
@queueoverflow 3 жыл бұрын
open cv is cool. but are there other image library in python, are they cool too? how can i choose between them.
@atharvagaikwad9619
@atharvagaikwad9619 3 жыл бұрын
11:07 if we change the itration in for loop from 3rd or say 2nd row it displays and error why is that so ..?
@prasannan-robots
@prasannan-robots 3 жыл бұрын
How it is showing that lower bar ([finished in])in sublime text?
@baryalen9669
@baryalen9669 3 жыл бұрын
Do u remember evrthng or do u have to look up the terms when u change between languages does every programmer keep notes near and refer to if they dont knw the syntaxes and if u do tht would that make u a bad programer
@Tuguldur
@Tuguldur 3 жыл бұрын
Tim can you make video on FastApi pleass
@ananthramvijayaraj4554
@ananthramvijayaraj4554 3 жыл бұрын
Tim amazing video, but I want to give you just one suggestion, don't change your outro music!
@Pradeep_Rai_Thota
@Pradeep_Rai_Thota 3 жыл бұрын
Unused import statement 'import cv2' - I am getting this error for all packages when I use IMPORT. please help me in this
@peertech6598
@peertech6598 3 жыл бұрын
please help me to make opencv to Pasting Images onto other Image with OpenCV using free moving
@neilausten9404
@neilausten9404 2 жыл бұрын
I can't find a way to tag/relocate and then resize the image. Tried to put the img=cv2.resize etc at several spots in the program. Doesn't work. Also my default image size is very large, can it be made smaller without a resize command?
@neilausten9404
@neilausten9404 2 жыл бұрын
Forget above comment You can resize before setting tag= etc
@taiwooluwasegun9631
@taiwooluwasegun9631 3 жыл бұрын
The for loop is kind of complex
@unknownman5296
@unknownman5296 3 жыл бұрын
please make android development tutorial tim !!
@ranjitodedra55
@ranjitodedra55 2 жыл бұрын
Wooo
@shubrathdevadiga2833
@shubrathdevadiga2833 3 жыл бұрын
Pls try to upload two videos per day
@trevormckellen5613
@trevormckellen5613 2 жыл бұрын
The opencv documentation was so helpfull. and boy did the row and columns confuse me
@PhenQuest
@PhenQuest 3 жыл бұрын
Second. I saw this vid had 1 view then after entering, there is 2 views
@aaravgp1332
@aaravgp1332 3 жыл бұрын
when I print type(img) it says nonetype
@chandradharkoneti
@chandradharkoneti 2 жыл бұрын
For anyone interested, The IDE being used is sublime text.
@TheDtkxiang
@TheDtkxiang 3 жыл бұрын
At 5.40 shouldn't 128 be darker blue? since 0 is black
@Lightningifyback
@Lightningifyback 3 жыл бұрын
Umm no black is 0, 0, 0(blank for all) and In just one color if its 0, then it will be absolute blank. If its 255, Then its the darkest blue
@TheDtkxiang
@TheDtkxiang 3 жыл бұрын
@@Lightningifyback I think u're misunderstanding something here. Firstly, by 0, i mean 0, 0, 0. And 255 is the *blue-est* blue, not the darkest blue. Maybe check the definition of dark?
@bishwajitnarayanroy5154
@bishwajitnarayanroy5154 Жыл бұрын
why random.randint(0,255) three times?
@azu2367
@azu2367 2 жыл бұрын
You prolly won’t get back to me but I would love for you to tutor me or just guide me through a game a.I I’ve already learned python and pyautogui I’m now watching you to learn opencv 🙏🏽
@NuwaHWeil
@NuwaHWeil 2 жыл бұрын
Hi, sorry hmm do you know any good documentation for OpenCV? The documentation link in the description is abandoned... Thk for answer...
@ScratchTuto
@ScratchTuto 3 жыл бұрын
Hi TWT I have a Fiverr account but I don't get customers I would really appreciate your help to get those thanks!!!
@maniacstinger8625
@maniacstinger8625 3 жыл бұрын
I have a doubt: tag = img[500:700, 600:900] and tag = img[500:700][600:900]
@TechWithTim
@TechWithTim 3 жыл бұрын
Same thing!
@ati-9021
@ati-9021 2 ай бұрын
Relevant Documentation does not open :(
@miracleukpongson1305
@miracleukpongson1305 2 жыл бұрын
for some unknown reason this video doesnt play for me
@lifesgood5065
@lifesgood5065 3 жыл бұрын
that one dislike is wrong
@ScratchTuto
@ScratchTuto 3 жыл бұрын
Hi twt how much will cost that you mention my Fiverr gig in your video and put the link in the description, I'm almost 13 years old And I want to make a little bit of money that I'm not pointless in this world/life and get mom and dad proud?
@kemenesmark
@kemenesmark 3 жыл бұрын
third
@yashasvisinghsaini
@yashasvisinghsaini 3 жыл бұрын
685th view
@spider-maninside5401
@spider-maninside5401 3 жыл бұрын
FIRST VIEW HAHA
@GCKteamKrispy
@GCKteamKrispy Жыл бұрын
Man, so opencv is just a photoshop for programmers🤣
@ruelagnes4277
@ruelagnes4277 6 ай бұрын
its good but the problem you don want to explain if youre not sure of the answer thats the problem with your videos,
@saucecircuit9992
@saucecircuit9992 2 жыл бұрын
You need to slow down and explain more. You explain one thing fine and then just blow through the next two. This isn’t teaching. It’s trying to show everyone how smart you are.
@TechWithTim
@TechWithTim 2 жыл бұрын
I appreciate the feedback. Would you mind listing what you felt I didn’t explain well enough? Believe it or not I don’t really care how smart u think I am and I do actually try to explain everything, it’s just that if I were to explain every single character of the code my videos would be 3 hours long and no one would watch them 🤷‍♂️
@courageouscuber9278
@courageouscuber9278 2 жыл бұрын
Slow the video down to 0.5 or look at opencv documentation. He is explaining everything that he goes through if you are listen.
@unknownman5296
@unknownman5296 3 жыл бұрын
please make android development tutorial tim !
OpenCV Python Tutorial #3 - Cameras and VideoCapture
17:16
Tech With Tim
Рет қаралды 164 М.
A Worlds First On This Top Tier Radio - TIDRadio H3
11:52
Tech Minds
Рет қаралды 11 М.
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 24 МЛН
ПЕЙ МОЛОКО КАК ФОКУСНИК
00:37
Masomka
Рет қаралды 10 МЛН
1❤️
00:20
すしらーめん《りく》
Рет қаралды 31 МЛН
¡Puaj! No comas piruleta sucia, usa un gadget 😱 #herramienta
00:30
JOON Spanish
Рет қаралды 22 МЛН
I tried to make a Valorant AI using computer vision
19:23
River's Educational Channel
Рет қаралды 1,3 МЛН
Visualize Spectral Decomposition | SEE Matrix, Chapter 2
15:55
Visual Kernel
Рет қаралды 56 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
OpenCV Python Tutorial #1 - Introduction & Images
14:52
Tech With Tim
Рет қаралды 326 М.
3 Python Projects I’d Put On MY Resume
14:49
Tech With Tim
Рет қаралды 31 М.
What Backend Language is Right For You?
6:55
Tech With Tim
Рет қаралды 21 М.
OpenCV Python Tutorial #6 - Corner Detection
21:43
Tech With Tim
Рет қаралды 67 М.
Training a Cascade Classifier - OpenCV Object Detection in Games #8
32:29
Learn Code By Gaming
Рет қаралды 147 М.
How To Actually Make $10k A Month Coding
14:54
Tech With Tim
Рет қаралды 72 М.
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 24 МЛН