エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Gauche-CVでモノクロ画像を作る - ぱたへね
Programming Computer Vision With Pythonを読み始めました。Pythonでそのまま画像処理をしても面白くな... Programming Computer Vision With Pythonを読み始めました。Pythonでそのまま画像処理をしても面白くないので、aharisuのごみ箱で公開されているGauce-CVを使ってみました。 Python PILで画像をモノクロにする。 Programming Computer Vision With Python に載っている方法です。convert('L')で変換しています。 # -*- coding: utf-8 -*- __author__ = 'Natsutani' from PIL import Image def conv_to_grayscale(infile, outfile): try: Image.open(infile).convert('L').save(outfile) except: print('cannot convert
2012/07/24 リンク