<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hoshimure-47</author_name>
  <author_url>https://blog.hatena.ne.jp/hoshimure-47/</author_url>
  <blog_title>語り得ぬことについては、沈黙するほかない</blog_title>
  <blog_url>https://hoshimureinforcement.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>プログラミング</anon>
    <anon>画像処理</anon>
  </categories>
  <description>前回の記事の続きです。乃木坂46の3期生の顔認識Webアプリについて進捗ができました。 やったこと bing画像検索から、一人につきおよそ300枚なので合計3000枚超の画像を集めてきました。 ここから人間が一つ一つ確認して、顔だけ正方形の形に切り取るのはこの上なく非効率なので、画像処理ライブラリのOpenCVを使っていきたいと思います。 OpenCVは、pipを使っている人なら簡単に使用できます。 $ pip install opencv-python コードと解説 import os import cv2 def faceDetection(fname): print('input fil…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhoshimureinforcement.hatenablog.com%2Fentry%2F2017%2F09%2F29%2F172419&quot; title=&quot;PythonとOpenCVで写真から顔だけ切り取ってみたよ - 語り得ぬことについては、沈黙するほかない&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/h/hoshimure-47/20170929/20170929172220.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-29 17:24:19</published>
  <title>PythonとOpenCVで写真から顔だけ切り取ってみたよ</title>
  <type>rich</type>
  <url>https://hoshimureinforcement.hatenablog.com/entry/2017/09/29/172419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
