Image Processing EP.1 : PIL Image Processing on Google Colab using MX Linux 19 2 mcOS

preview_player
Показать описание
PIL Image Processing on Google Colab using MX Linux 19 2 mcOS live running on live usb flash drive.

เรียนรู้การประมวลผลภาพเบื้องต้น (Image Processing) ด้วยภาษาไพธอน (Python) รับบน Google colab ซึ่งเป็น Cloud ไม่ต้องติดตั้งโปรแกรม รับผ่านเว็บบราวเซอร์ได้ทันที มี libray พร้อมใช้งาน

คำสั่งที่ใช้ในการเขียนโปรแกรม

#Connect to google drive

#change directory
%cd /content/drive/My\ Drive

#print name of current/working directory
!pwd

#creat a directory
!mkdir linuxsiam1 #Your directory's name

!ls

#change to your directory
%cd linuxsiam1/

#import files and IPythonDisplay

#Upload file(s) for Image Processing Practice

#Install Pillow(PIL)
!pip install pillow

from PIL import Image
im

#Conver image
convert_image

#creat box to crop image
box = (100, 100, 400, 400)

#crop and rotate image
im

#Resize and rotate image

resize_image

#Pillow (PIL) tutorial
Рекомендации по теме