当前位置:网站首页>About image reading and processing, etc

About image reading and processing, etc

2022-07-06 19:24:00 Highlight_ Jin

One 、 Image reading

Two 、 Image library pillow

from PIL.Image import Image, fromarray
import PIL.ImageDraw as ImageDraw
import PIL.ImageFont as ImageFont
from PIL import ImageColor

1.getrgb() Get the color rgb value

from PIL import ImageColor
 
def color():
    color = 'red'
    print(ImageColor.getrgb(color))
 
if __name__ == '__main__':
    color()

python Notes ( Four ):pillow( 3、 ... and ) ImageColor modular ( Naming of colors )
2.ImageDraw.Draw[python The image processing ] The drawing of geometry and text
3.Python Image processing library PIL Of ImageFont Module introduction

原网站

版权声明
本文为[Highlight_ Jin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061127417785.html

随机推荐