<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>MacOS</anon>
    <anon>ハードウェア</anon>
    <anon>Python</anon>
  </categories>
  <description>python-opencvのVideoCapture(index)を使えば，Webカメラを気軽に操作できますが，複数のWebカメラを扱う時にindexをどうやって指定するかが問題となります． MacOSならば，system_profilerコマンドがありますので，これを使えば正しいindexを取得できます． % sw_vers ProductName: Mac OS X ProductVersion: 10.15.7 % python3 --version Python 3.9.7 system_profilerコマンドにはSPCameraDataTypeオプションがあり，カメラ情報のみを取得…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2021%2F12%2F04%2F224844&quot; title=&quot;python-opencvでWebカメラを一覧から取得する - みーのぺーじ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-04 22:48:44</published>
  <title>python-opencvでWebカメラを一覧から取得する</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2021/12/04/224844</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
