OpenCV Python Tutorial #2 - Image Fundamentals and Manipulation
HTML-код
- Опубликовано: 10 май 2024
- 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 RUclips 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
I really hope he completes the series and does not drop it midway.
Thanks for taking the time to explain how the numpy array elements correlate to the image pixel positions. Super simple but super helpful!
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!
Awesome graphics during the video. Excited for the series. Really appreciate the efforts you are putting for the viewers. Great videos as always.
Thanks a ton!
Love this series of open CV ❤❤
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!
Yessir, more please these are perfect!
Thanks Tim, this Serie is very interesting .. please do more especially : batch images processing and face recognition , cropping and labeling faces
Amazing stuff! Thank you for the precision
Thanks a lot sir🙏 please upload more videos of this series.
Thanks for the subject and for the quality ! 😃🔥🔥
Please cover all necessary basics of openCv.
Appreciate your efforts !!
Really nice and easy tutorial, thank you for this
I am a fan of yours.
Keep up the good work.
1mil soon
Thx plz continue this series
Was doing a project for my wife with images and this video just went live. Awesome!
thanks for this tutoriel , looking for a future tutorial about OCR techniques, please
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
please continue this series
Excellent video. Thank you.
This is so helpful. You are amazing
Very cool and fun!! Thank you !!
I'm doing OpenCV right now at school hahaha, it's so powerful. I'm even using it for my honours project
Nice work Tim! (
It should be noted though, @5:45, changing from 255 to 128 will make it a darker blue, not lighter.)
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)
Who the hell disliked this knowledge video
A stupid person
@@miguelnuno928 IKR
Only a 0 iq person who didn't understand this video will dislike it 😂
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
highly appreciated
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?
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
lovely Timmie
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
Excellent
Love you videos :)
Having the computer play a game with using opencv as its "eyes" would be really interesting
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.
Hey tim please continue this series with tensorrt,cuda
Does that mean that the Resize function is removing specific elements from the array?
You mean I can generate my own image wow that good to know
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 :) ...........
Hay Tim how can I use machine learning with opencv
@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)
Can you make video on OCR?
I got 4 channels in my png. Is it CMYK or something ? Does the value also range from 0 to 255 too ?
Nice. How to capture image from camera?
nice 😍
Can we use any other tool to get the location of the object and then use open cv
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...
The "Relevant Documentation" - link in your description seems to not work anymore - just so you know
pls do not stop
How it is showing that lower bar ([finished in])in sublime text?
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
11:07 if we change the itration in for loop from 3rd or say 2nd row it displays and error why is that so ..?
open cv is cool. but are there other image library in python, are they cool too? how can i choose between them.
Tim amazing video, but I want to give you just one suggestion, don't change your outro music!
Tim can you make video on FastApi pleass
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?
Forget above comment You can resize before setting tag= etc
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.
That sounds interesting. Could you please share the code so that I can try it out?
please make android development tutorial tim !!
The opencv documentation was so helpfull. and boy did the row and columns confuse me
thank you so f*** much!
please help me to make opencv to Pasting Images onto other Image with OpenCV using free moving
The for loop is kind of complex
Unused import statement 'import cv2' - I am getting this error for all packages when I use IMPORT. please help me in this
when I print type(img) it says nonetype
Pls try to upload two videos per day
At 5.40 shouldn't 128 be darker blue? since 0 is black
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
@@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?
why random.randint(0,255) three times?
I have a doubt: tag = img[500:700, 600:900] and tag = img[500:700][600:900]
Same thing!
Second. I saw this vid had 1 view then after entering, there is 2 views
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 🙏🏽
Hi, sorry hmm do you know any good documentation for OpenCV?
The documentation link in the description is abandoned...
Thk for answer...
Hi TWT I have a Fiverr account but I don't get customers I would really appreciate your help to get those thanks!!!
Relevant Documentation does not open :(
Wooo
For anyone interested, The IDE being used is sublime text.
for some unknown reason this video doesnt play for me
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?
that one dislike is wrong
685th view
third
FIRST VIEW HAHA
Man, so opencv is just a photoshop for programmers🤣
its good but the problem you don want to explain if youre not sure of the answer thats the problem with your videos,
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.
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 🤷♂️
Slow the video down to 0.5 or look at opencv documentation. He is explaining everything that he goes through if you are listen.
please make android development tutorial tim !