<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kawakeee</author_name>
  <author_url>https://blog.hatena.ne.jp/kawakeee/</author_url>
  <blog_title>おてやわらかに</blog_title>
  <blog_url>https://kawakeee.hatenablog.com/</blog_url>
  <categories>
    <anon>OpenCV</anon>
    <anon>Python</anon>
  </categories>
  <description>こちらの記事で、リアルタイムカメラから顔検出→画像生成するところまでできた。 kawakeee.hatenablog.com 今回は、顔検出したタイミングで顔検出部分の画像ファイル(jpg)を生成させる。 顔検出箇所をトリミング 実行 ソースコード 参考記事 顔検出箇所をトリミング 顔検出時に黒枠で囲む際の座標情報を用いて、フレームをトリミングする。 【一部抜粋】 # 検出した顔に印を付ける for (x, y, w, h) in face_list: color = (0, 0, 225) pen_w = 3 cv2.rectangle(img_gray, (x, y), (x+w, y+h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkawakeee.hatenablog.com%2Fentry%2F2019%2F12%2F23%2F221301&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/k/kawakeee/20191220/20191220214543.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-23 22:13:01</published>
  <title>Python + OpenCVで顔検出（３）〜検出箇所のみに画像トリミング〜</title>
  <type>rich</type>
  <url>https://kawakeee.hatenablog.com/entry/2019/12/23/221301</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
