<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t_nkb</author_name>
  <author_url>https://blog.hatena.ne.jp/t_nkb/</author_url>
  <blog_title>技術メモ集</blog_title>
  <blog_url>https://www.robotech-note.com/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>ubuntu</anon>
    <anon>openCV</anon>
    <anon>cv2</anon>
  </categories>
  <description>概要 openCVで動画の任意の地点から再生を開始する方法をまとめる。 これまではwhileループで1フレームずつ取得し読み飛ばしていた。しかし、この方法はあまりにも無駄が多い・・・時間もかかるし、HDDにも悪影響が出そう。 ということで、もう少し効率の良い方法を調べてみた。 従来方法 飛ばしたい時間分フレームを読みこませるだけ、簡単だけど、100秒のスキップに10秒ほど時間がかかる。 流石にこれじゃねぇ・・・。ということで、次の手法。 movie = cv2.VideoCapture(input_filename) if movie.isOpened() == True: ret,frame…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.robotech-note.com%2Fentry%2F2016%2F12%2F26%2F172557&quot; title=&quot;cv2（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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-12-26 17:25:57</published>
  <title>cv2（openCV）で動画の途中から再生する方法</title>
  <type>rich</type>
  <url>https://www.robotech-note.com/entry/2016/12/26/172557</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
