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> <br> 10<font color="#ffffff" face="helvetica, arial"> <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># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14# Use of this source code is governed by a BSD-style license that can be<br> 15# found in the LICENSE 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> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </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> <br> 32<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 33 34<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </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> <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> </tt></td><td> </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> 63Data descriptors defined here:<br> 64<dl><dt><strong>__weakref__</strong></dt> 65<dd><tt>list of weak references to the object (if defined)</tt></dd> 66</dl> 67<hr> 68Methods 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>(...) initializes x; see help(type(x)) for signature</tt></dd></dl> 70 71<hr> 72Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 73<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#BoundingBoxNotFoundException-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> 74 75<hr> 76Methods 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') <==> del 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') <==> 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) <==> 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, j) <==> x[i:j]<br> 84 <br> 85Use of negative indices is not 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>() <==> 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', value) <==> x.name = 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>() <==> str(x)</tt></dd></dl> 96 97<dl><dt><a name="BoundingBoxNotFoundException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> 98 99<hr> 100Data 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> <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> </tt></td> 114<td colspan=2><tt>Utilities for storing and interacting with the video capture.<br> </tt></td></tr> 115<tr><td> </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 the iteration for processing the video capture.<br> 118 <br> 119This looks for the initial color flash in the first frame to establish the<br> 120tab content boundaries and then omits all frames displaying the flash.<br> 121 <br> 122Yields:<br> 123 (time_ms, image) tuples representing each video keyframe. Only the first<br> 124 frame is a run of sequential duplicate bitmaps is typically included.<br> 125 time_ms is milliseconds since navigationStart.<br> 126 image may be a telemetry.core.Bitmap, or a numpy array depending on<br> 127 whether numpy is installed.</tt></dd></dl> 128 129<dl><dt><a name="Video-UploadToCloudStorage"><strong>UploadToCloudStorage</strong></a>(self, bucket, target_path)</dt><dd><tt>Uploads video file to cloud storage.<br> 130 <br> 131Args:<br> 132 target_path: Path indicating where to store the file in cloud 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> 137Data descriptors defined here:<br> 138<dl><dt><strong>__dict__</strong></dt> 139<dd><tt>dictionary for instance variables (if defined)</tt></dd> 140</dl> 141<dl><dt><strong>__weakref__</strong></dt> 142<dd><tt>list of weak references to the object (if 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> <br> 148<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> 149 150<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </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>