Home | History | Annotate | Download | only in pydoc
      1 
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      3 <html><head><title>Python: module telemetry.internal.image_processing.video</title>
      4 <meta charset="utf-8">
      5 </head><body bgcolor="#f0f0f8">
      6 
      7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
      8 <tr bgcolor="#7799ee">
      9 <td valign=bottom>&nbsp;<br>
     10 <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.image_processing.html"><font color="#ffffff">image_processing</font></a>.video</strong></big></big></font></td
     11 ><td align=right valign=bottom
     12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/image_processing/video.py">telemetry/internal/image_processing/video.py</a></font></td></tr></table>
     13     <p><tt>#&nbsp;Copyright&nbsp;2014&nbsp;The&nbsp;Chromium&nbsp;Authors.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
     14 #&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by&nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br>
     15 #&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;file.</tt></p>
     16 <p>
     17 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     18 <tr bgcolor="#aa55cc">
     19 <td colspan=3 valign=bottom>&nbsp;<br>
     20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
     21     
     22 <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     23 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="catapult_base.cloud_storage.html">catapult_base.cloud_storage</a><br>
     24 <a href="telemetry.util.image_util.html">telemetry.util.image_util</a><br>
     25 </td><td width="25%" valign=top><a href="telemetry.core.platform.html">telemetry.core.platform</a><br>
     26 <a href="telemetry.util.rgba_color.html">telemetry.util.rgba_color</a><br>
     27 </td><td width="25%" valign=top><a href="subprocess.html">subprocess</a><br>
     28 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
     29 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     30 <tr bgcolor="#ee77aa">
     31 <td colspan=3 valign=bottom>&nbsp;<br>
     32 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
     33     
     34 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     35 <td width="100%"><dl>
     36 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
     37 </font></dt><dd>
     38 <dl>
     39 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.video.html#Video">Video</a>
     40 </font></dt></dl>
     41 </dd>
     42 <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
     43 </font></dt><dd>
     44 <dl>
     45 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.video.html#BoundingBoxNotFoundException">BoundingBoxNotFoundException</a>
     46 </font></dt></dl>
     47 </dd>
     48 </dl>
     49  <p>
     50 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     51 <tr bgcolor="#ffc8d8">
     52 <td colspan=3 valign=bottom>&nbsp;<br>
     53 <font color="#000000" face="helvetica, arial"><a name="BoundingBoxNotFoundException">class <strong>BoundingBoxNotFoundException</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
     54     
     55 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     56 <td width="100%"><dl><dt>Method resolution order:</dt>
     57 <dd><a href="telemetry.internal.image_processing.video.html#BoundingBoxNotFoundException">BoundingBoxNotFoundException</a></dd>
     58 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
     59 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
     60 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
     61 </dl>
     62 <hr>
     63 Data descriptors defined here:<br>
     64 <dl><dt><strong>__weakref__</strong></dt>
     65 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
     66 </dl>
     67 <hr>
     68 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
     69 <dl><dt><a name="BoundingBoxNotFoundException-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__init__">__init__</a>(...)&nbsp;initializes&nbsp;x;&nbsp;see&nbsp;help(type(x))&nbsp;for&nbsp;signature</tt></dd></dl>
     70 
     71 <hr>
     72 Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
     73 <dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#BoundingBoxNotFoundException-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>
     74 
     75 <hr>
     76 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
     77 <dl><dt><a name="BoundingBoxNotFoundException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>
     78 
     79 <dl><dt><a name="BoundingBoxNotFoundException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>
     80 
     81 <dl><dt><a name="BoundingBoxNotFoundException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__getitem__">__getitem__</a>(y)&nbsp;&lt;==&gt;&nbsp;x[y]</tt></dd></dl>
     82 
     83 <dl><dt><a name="BoundingBoxNotFoundException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__getslice__">__getslice__</a>(i,&nbsp;j)&nbsp;&lt;==&gt;&nbsp;x[i:j]<br>
     84 &nbsp;<br>
     85 Use&nbsp;of&nbsp;negative&nbsp;indices&nbsp;is&nbsp;not&nbsp;supported.</tt></dd></dl>
     86 
     87 <dl><dt><a name="BoundingBoxNotFoundException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
     88 
     89 <dl><dt><a name="BoundingBoxNotFoundException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>
     90 
     91 <dl><dt><a name="BoundingBoxNotFoundException-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>
     92 
     93 <dl><dt><a name="BoundingBoxNotFoundException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
     94 
     95 <dl><dt><a name="BoundingBoxNotFoundException-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#BoundingBoxNotFoundException-__str__">__str__</a>()&nbsp;&lt;==&gt;&nbsp;str(x)</tt></dd></dl>
     96 
     97 <dl><dt><a name="BoundingBoxNotFoundException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
     98 
     99 <hr>
    100 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
    101 <dl><dt><strong>__dict__</strong></dt>
    102 </dl>
    103 <dl><dt><strong>args</strong></dt>
    104 </dl>
    105 <dl><dt><strong>message</strong></dt>
    106 </dl>
    107 </td></tr></table> <p>
    108 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    109 <tr bgcolor="#ffc8d8">
    110 <td colspan=3 valign=bottom>&nbsp;<br>
    111 <font color="#000000" face="helvetica, arial"><a name="Video">class <strong>Video</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    112     
    113 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
    114 <td colspan=2><tt>Utilities&nbsp;for&nbsp;storing&nbsp;and&nbsp;interacting&nbsp;with&nbsp;the&nbsp;video&nbsp;capture.<br>&nbsp;</tt></td></tr>
    115 <tr><td>&nbsp;</td>
    116 <td width="100%">Methods defined here:<br>
    117 <dl><dt><a name="Video-GetVideoFrameIter"><strong>GetVideoFrameIter</strong></a>(self)</dt><dd><tt>Returns&nbsp;the&nbsp;iteration&nbsp;for&nbsp;processing&nbsp;the&nbsp;video&nbsp;capture.<br>
    118 &nbsp;<br>
    119 This&nbsp;looks&nbsp;for&nbsp;the&nbsp;initial&nbsp;color&nbsp;flash&nbsp;in&nbsp;the&nbsp;first&nbsp;frame&nbsp;to&nbsp;establish&nbsp;the<br>
    120 tab&nbsp;content&nbsp;boundaries&nbsp;and&nbsp;then&nbsp;omits&nbsp;all&nbsp;frames&nbsp;displaying&nbsp;the&nbsp;flash.<br>
    121 &nbsp;<br>
    122 Yields:<br>
    123 &nbsp;&nbsp;(time_ms,&nbsp;image)&nbsp;tuples&nbsp;representing&nbsp;each&nbsp;video&nbsp;keyframe.&nbsp;Only&nbsp;the&nbsp;first<br>
    124 &nbsp;&nbsp;frame&nbsp;is&nbsp;a&nbsp;run&nbsp;of&nbsp;sequential&nbsp;duplicate&nbsp;bitmaps&nbsp;is&nbsp;typically&nbsp;included.<br>
    125 &nbsp;&nbsp;&nbsp;&nbsp;time_ms&nbsp;is&nbsp;milliseconds&nbsp;since&nbsp;navigationStart.<br>
    126 &nbsp;&nbsp;&nbsp;&nbsp;image&nbsp;may&nbsp;be&nbsp;a&nbsp;telemetry.core.Bitmap,&nbsp;or&nbsp;a&nbsp;numpy&nbsp;array&nbsp;depending&nbsp;on<br>
    127 &nbsp;&nbsp;&nbsp;&nbsp;whether&nbsp;numpy&nbsp;is&nbsp;installed.</tt></dd></dl>
    128 
    129 <dl><dt><a name="Video-UploadToCloudStorage"><strong>UploadToCloudStorage</strong></a>(self, bucket, target_path)</dt><dd><tt>Uploads&nbsp;video&nbsp;file&nbsp;to&nbsp;cloud&nbsp;storage.<br>
    130 &nbsp;<br>
    131 Args:<br>
    132 &nbsp;&nbsp;target_path:&nbsp;Path&nbsp;indicating&nbsp;where&nbsp;to&nbsp;store&nbsp;the&nbsp;file&nbsp;in&nbsp;cloud&nbsp;storage.</tt></dd></dl>
    133 
    134 <dl><dt><a name="Video-__init__"><strong>__init__</strong></a>(self, video_file_obj)</dt></dl>
    135 
    136 <hr>
    137 Data descriptors defined here:<br>
    138 <dl><dt><strong>__dict__</strong></dt>
    139 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
    140 </dl>
    141 <dl><dt><strong>__weakref__</strong></dt>
    142 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
    143 </dl>
    144 </td></tr></table></td></tr></table><p>
    145 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    146 <tr bgcolor="#55aa55">
    147 <td colspan=3 valign=bottom>&nbsp;<br>
    148 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    149     
    150 <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
    151 <td width="100%"><strong>HIGHLIGHT_ORANGE_FRAME</strong> = RgbaColor(r=222, g=100, b=13, a=255)</td></tr></table>
    152 </body></html>