OLD | NEW |
| (Empty) |
1 | |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
3 <html><head><title>Python: module telemetry.internal.image_processing.video_file
_frame_generator</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 hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.int
ernal.image_processing.html"><font color="#ffffff">image_processing</font></a>.v
ideo_file_frame_generator</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_file_frame_generator.py">telemetry
/internal/image_processing/video_file_frame_generator.py</a></font></td></tr></t
able> | |
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=t
op><a href="cv2.html">cv2</a><br> | |
24 </td><td width="25%" valign=top><a href="telemetry.internal.util.external_module
s.html">telemetry.internal.util.external_modules</a><br> | |
25 </td><td width="25%" valign=top><a href="telemetry.internal.image_processing.fra
me_generator.html">telemetry.internal.image_processing.frame_generator</a><br> | |
26 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | |
27 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
28 <tr bgcolor="#ee77aa"> | |
29 <td colspan=3 valign=bottom> <br> | |
30 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | |
31 | |
32 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | |
33 <td width="100%"><dl> | |
34 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.f
rame_generator.html#FrameGenerator">telemetry.internal.image_processing.frame_ge
nerator.FrameGenerator</a>(<a href="__builtin__.html#object">__builtin__.object<
/a>) | |
35 </font></dt><dd> | |
36 <dl> | |
37 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.v
ideo_file_frame_generator.html#VideoFileFrameGenerator">VideoFileFrameGenerator<
/a> | |
38 </font></dt></dl> | |
39 </dd> | |
40 </dl> | |
41 <p> | |
42 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
43 <tr bgcolor="#ffc8d8"> | |
44 <td colspan=3 valign=bottom> <br> | |
45 <font color="#000000" face="helvetica, arial"><a name="VideoFileFrameGenerator">
class <strong>VideoFileFrameGenerator</strong></a>(<a href="telemetry.internal.i
mage_processing.frame_generator.html#FrameGenerator">telemetry.internal.image_pr
ocessing.frame_generator.FrameGenerator</a>)</font></td></tr> | |
46 | |
47 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | |
48 <td colspan=2><tt>Provides a Frame Generator for a 
;video file.<br> | |
49 <br> | |
50 Sample Usage:<br> | |
51 generator = <a href="#VideoFileFrameGenerator">VideoFileFr
ameGenerator</a>(sys.argv[1]).GetGenerator()<br> | |
52 for frame in generator:<br> | |
53 # Do something<br> | |
54 <br> | |
55 Attributes:<br> | |
56 _capture: The openCV video capture.<br> | |
57 _frame_count: The number of frames in
the video capture.<br> | |
58 _frame_index: The frame number of the
current frame.<br> | |
59 _timestamp: The timestamp of the current&nb
sp;frame.<br> | |
60 _dimensions: The dimensions of the video&nb
sp;capture.<br> </tt></td></tr> | |
61 <tr><td> </td> | |
62 <td width="100%"><dl><dt>Method resolution order:</dt> | |
63 <dd><a href="telemetry.internal.image_processing.video_file_frame_generator.html
#VideoFileFrameGenerator">VideoFileFrameGenerator</a></dd> | |
64 <dd><a href="telemetry.internal.image_processing.frame_generator.html#FrameGener
ator">telemetry.internal.image_processing.frame_generator.FrameGenerator</a></dd
> | |
65 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | |
66 </dl> | |
67 <hr> | |
68 Methods defined here:<br> | |
69 <dl><dt><a name="VideoFileFrameGenerator-__init__"><strong>__init__</strong></a>
(self, video_filename, start_frame_index<font color="#909090">=0</font>)</dt><dd
><tt>Initializes the <a href="#VideoFileFrameGenerator">VideoFileFrame
Generator</a> object.<br> | |
70 <br> | |
71 Args:<br> | |
72 video_filename: str, The path to the v
ideo file.<br> | |
73 start_frame_index: int, The number of frame
s to skip at the start of the<br> | |
74 file.<br> | |
75 <br> | |
76 Raises:<br> | |
77 FrameReadError: A read error occurred durin
g initialization.</tt></dd></dl> | |
78 | |
79 <hr> | |
80 Data descriptors defined here:<br> | |
81 <dl><dt><strong>CurrentFrameNumber</strong></dt> | |
82 </dl> | |
83 <dl><dt><strong>CurrentTimestamp</strong></dt> | |
84 </dl> | |
85 <dl><dt><strong>Dimensions</strong></dt> | |
86 </dl> | |
87 <hr> | |
88 Data and other attributes defined here:<br> | |
89 <dl><dt><strong>__abstractmethods__</strong> = frozenset([])</dl> | |
90 | |
91 <hr> | |
92 Data descriptors inherited from <a href="telemetry.internal.image_processing.fra
me_generator.html#FrameGenerator">telemetry.internal.image_processing.frame_gene
rator.FrameGenerator</a>:<br> | |
93 <dl><dt><strong>Generator</strong></dt> | |
94 <dd><tt>Returns:<br> | |
95 A reference to the created generator.</tt></dd> | |
96 </dl> | |
97 <dl><dt><strong>__dict__</strong></dt> | |
98 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | |
99 </dl> | |
100 <dl><dt><strong>__weakref__</strong></dt> | |
101 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
102 </dl> | |
103 <hr> | |
104 Data and other attributes inherited from <a href="telemetry.internal.image_proce
ssing.frame_generator.html#FrameGenerator">telemetry.internal.image_processing.f
rame_generator.FrameGenerator</a>:<br> | |
105 <dl><dt><strong>__metaclass__</strong> = <class 'abc.ABCMeta'><dd><tt>Meta
class for defining Abstract Base Classes (ABCs).<b
r> | |
106 <br> | |
107 Use this metaclass to create an ABC. An
ABC can be subclassed<br> | |
108 directly, and then acts as a mix-in class.&nb
sp; You can also register<br> | |
109 unrelated concrete classes (even built-in classes) 
;and unrelated<br> | |
110 ABCs as 'virtual subclasses' -- these and the
ir descendants will<br> | |
111 be considered subclasses of the registering ABC&nb
sp;by the built-in<br> | |
112 issubclass() function, but the registering ABC won
't show up in<br> | |
113 their MRO (Method Resolution Order) nor will
method<br> | |
114 implementations defined by the registering ABC be&
nbsp;callable (not<br> | |
115 even via super()).</tt></dl> | |
116 | |
117 </td></tr></table></td></tr></table> | |
118 </body></html> | |
OLD | NEW |