
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
PillowのModeFilterを使って写真を絵画調にする - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
PillowのModeFilterを使って写真を絵画調にする - Qiita
from PIL import Image, ImageChops, ImageOps, ImageFilter img = Image.open("test.jpeg") qant_img =... from PIL import Image, ImageChops, ImageOps, ImageFilter img = Image.open("test.jpeg") qant_img = img.quantize(8, kmeans=True).convert("RGB") t = qant_img t = t.filter(ImageFilter.ModeFilter(12)) t = t.filter(ImageFilter.GaussianBlur(5)) t = t.filter(ImageFilter.ModeFilter(12)) t = t.filter(ImageFilter.GaussianBlur(1)) color_img = t.convert("RGB") gray = img.convert("L") gray2 = gray.filter(ImageF