<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>memorude</author_name>
  <author_url>https://blog.hatena.ne.jp/memorude/</author_url>
  <blog_title>PUROGU LADESU</blog_title>
  <blog_url>https://puroguradesu.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>QRコードリーダー AVFoundationを使います。 画像や音声を取得できるライブラリです。今回はmetadataを使ってバーコード認識のみ行います。metadataObjectTypesで認識するバーコードを指定します。 バーコードを読み取ったらdidOutput metadataObjectsが呼ばれます。rectOfInterestを指定してその範囲内のみ認識させるようにします。分かるように画面上に赤枠を出しますが、rectOfInterestは0.0~1.0の割合で指定する必要があるのでややこしい。今回は赤枠の位置を先に決めてから割合を計算しました。ここがハマリポイントですが、デフ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpuroguradesu.hatenadiary.jp%2Fentry%2F2021%2F01%2F26%2F205253&quot; title=&quot;【Swift】QRコードを読み取る - PUROGU LADESU&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/m/memorude/20210127/20210127004017.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-26 20:52:53</published>
  <title>【Swift】QRコードを読み取る</title>
  <type>rich</type>
  <url>https://puroguradesu.hatenadiary.jp/entry/2021/01/26/205253</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
