Package pyvision :: Package types :: Module Video :: Class VideoFromFileList
[hide private]
[frames] | no frames]

Class VideoFromFileList

source code

    object --+    
             |    
VideoInterface --+
                 |
                VideoFromFileList

Given a sorted list of filenames (including full path), this will treat the list as a video sequence.

Instance Methods [hide private]
 
__init__(self, filelist, size=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
grab(self)
This is a placeholder for the open cv webcam interface that sometimes requires this call.
source code
 
query(self)
Must be overridden to implement the specific frame-grabbing required by different video sources.
source code
 
__iter__(self)
Return an iterator for this video
source code

Inherited from VideoInterface: next, play, resize

Inherited from VideoInterface (private): _pauseAndPlay

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filelist, size=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • filelist - a list of full file paths to the images that comprise the video. They must be files capable of being loaded into a pv.Image() object, and should be in sorted order for playback.
  • size - Optional tuple to indicate the desired playback window size.
Overrides: object.__init__

grab(self)

source code 

This is a placeholder for the open cv webcam interface that sometimes requires this call.

Overrides: VideoInterface.grab
(inherited documentation)

query(self)

source code 

Must be overridden to implement the specific frame-grabbing required by different video sources.

Overrides: VideoInterface.query
(inherited documentation)

__iter__(self)

source code 

Return an iterator for this video

Overrides: VideoInterface.__iter__