<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chayarokurokuro</author_name>
  <author_url>https://blog.hatena.ne.jp/chayarokurokuro/</author_url>
  <blog_title>よちよちpython   </blog_title>
  <blog_url>https://chayarokurokuro.hatenablog.com/</blog_url>
  <categories>
    <anon>JupyterNotebook</anon>
    <anon>python</anon>
    <anon>画像処理</anon>
    <anon>Android</anon>
    <anon>termux</anon>
  </categories>
  <description>今回もPillowで画像の合成を行います。背景に貼り付ける画像のマスクを前回よりもう少し工夫します。 完成画像 使う画像(2枚) 作業環境 Android termux Python3.8 JupyterNotebook 外部ライブラリ Pillow(画像処理用) 画像の読み込み from PIL import Image # 画像ファイルパス file1 = &quot;jinja.JPG&quot; # 背景画像 file2 = &quot;hannya.jpeg&quot; # 貼り付ける画像 # Pillowで読み込み im_jinja = Image.open(file1) im_hannya = Image.open(f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchayarokurokuro.hatenablog.com%2Fentry%2F2020%2F08%2F17%2F210927&quot; title=&quot;【Pillow】画像のマスク処理と合成2 - よちよちpython   &quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/c/chayarokurokuro/20200817/20200817210117.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-17 21:09:27</published>
  <title>【Pillow】画像のマスク処理と合成2</title>
  <type>rich</type>
  <url>https://chayarokurokuro.hatenablog.com/entry/2020/08/17/210927</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
