Image Processing with Pillow - a Python Code-Along

preview_player
Показать описание
In this lesson, we'll focus on the Pillow Python library, also known as PIL.
I'll show you a few basic functions and useful tricks to manipulate each and every pixel on a given image.
By the end of this video, you'll know how mathematical operations affect images and you'll be comfortable with exploring Pillow further on your own!
#imageprocessing #python #pillow #PIL #computervision

Project files & code:

Timestamps:
00:00 - Intro
01:15 - Import PIL functions
01:35 - Load an image and display it
2:17 - Image attributes: size and mode
3:16 - Plotting 2 images inline (Matplotlib)
5:13 - Change color mode to Greyscale and Binary
6:34 - Mapping pixels / Creating image coordinates
6:59 - Accessing individual pixel values
7:44 - Converting an RGB image into Binary with a nested "for" loop
9:06 - Converting a Greyscale image into Binary with a nested "for" loop
10:19 - Selecting image regions with row and column conditions
12:30 - Rotate image with PIL.rotate()
13:18 - Gaussian Blue and Edge Detection with ImageFilter
15:10 - Outro, thanks for watching! :)

Pillow documentation:
Рекомендации по теме
Комментарии
Автор

Oh look.. it's my favorite python teacher.

rbk
Автор

This is a very helpful tutorial to understand the basics of Pillow. Thank you very much.

AK-hgti
Автор

Hey, great video. Do you have any content that explains how to display multiple images from an array INSIDE of a GUI? I know how to place images individually as labels, and I know how to use PIL to open up a folder of images on my desktop separate from the GUI. I've gotten as far as adding those images to an array, but am stuck on how to actually pack each image into the GUI. I am only able to open them with .show(), which again opens them up on my desktop as if clicking on the image normally. Thanks.

Packer_Games
Автор

Thank you, this video helped me with images processing. Great channel

TheGmr
Автор

ModuleNotFoundError: No module named 'PIL' i have python 3.9

jonyjohan
Автор

Enjoyed watching ur vedio mam, keep up ur good work like this. Thank you

ashashaikh
Автор

Is there anyway we can do PDF processing using python?

Ameya-zq
Автор

Mam how to overlay a image with less opacity in python pillows please answer

Mayank-lfym
Автор

How can I employ python pillow library in autolisp programming for kml file extraction?

daviddewortor
Автор

Thank you for the erection; I mean explanation. Really helped my confinement time pass faster.

modelworkzseo
Автор

absolutely sublime & studentfriendly DIP lecture from a really good mentor .helped me to understand easily & quickly .would you like to make a video for me on 'haar transformation' miss?!

rezwanrashid
Автор

me: woah i didn't know a girl programmer existed
mariya: yes

fab_code
Автор

Hi, new to your channel. Great work! I will definitely check out more of your videos.
Please explain to me why at 2:10 calling "O" displays the image. How come you don't have to use .show() ?
Thanks

TheMarbo
Автор

Great lectures.... 👌Really enjoyed them

romirmathur
Автор

Hi Marjia, I tryied this code:

from PIL import Image
pics =
for i in pics:
pic = Image.open(i)
new_pic = pic.resize((300, 300))
new_pic.save(i)

It returned:
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated escape
What did I do wrong?

bruhlickd
Автор

Hello, your video is good 👍, but can you zoom in, because there's a lot of white spaces and the code is very small for the mobile users, and thank you .

nooralaa
Автор

Você é brasileira reconheci pelo sotaque!

marcoslucio
Автор

11:43 well it's _monochromic_ to be exact.

leihejun
Автор

Finally someone is talking about Pillow! I have done lots of image manipulation with MATLAB in my undergraduate course and I feel the Pillow library comes the closest to that. Nice one Mariya!
P.S. Love the Rolling Stones reference! *wink* *wink*

chiranjeebroychowdhury
Автор

Can I get a job with turtle drawing along

aare