<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuji2yuji</author_name>
  <author_url>https://blog.hatena.ne.jp/yuji2yuji/</author_url>
  <blog_title>モノ創りで国造りを</blog_title>
  <blog_url>https://yuji2yuji.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>背景と目的 AIを勉強していると学習用のデータを準備するのが面倒とか難しいと思うことがあります。 画像データの準備方法とそれ用のスクリプトを作成したのでまとめておきます。 内容 本記事で行う内容は以下の通りです。 AIの勉強用途で用いる複数の有名人の画像データをgoogle-images-downloadで取得する。取得した画像データを人物毎に異なるディレクトリに保存します。 取得した画像データに対してAIで学習用データとして使用できるよう下記の処理を自作のpythonスクリプトで実行します。 顔部分を抽出 画像のピクセル数を統一する 白黒画像に変換する 自作のコードの大きな特徴として以下の2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuji2yuji.hatenablog.com%2Fentry%2F2022%2F03%2F21%2F084053&quot; title=&quot;AI勉強用、データの前処理 - モノ創りで国造りを&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/y/yuji2yuji/20220321/20220321084750.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-21 08:40:53</published>
  <title>AI勉強用、データの前処理</title>
  <type>rich</type>
  <url>https://yuji2yuji.hatenablog.com/entry/2022/03/21/084053</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
