| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
VideoInterface --+
|
VideoFromDirectory
This class allows the user to treat a directory of images as a video.
This class will recursively search the directories and will load and return any image with an image extension: JPG,JPEG,PNG,TIF,TIFF,GIF,BMP,PPM,PGM
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Recursively scans a directory for images and returns all images that
could be loaded.
Example:
images = pv.VideoFromDirectory(dirname)
for im in images:
do something
@param dirname: directory where the images comprising the video exist
@type dirname: str
@param order: return the images in a random order using the randam.shuffle function.
@type order: 'random' | 'ascending'
@param limit: limit the number of images returned.
@type limit: int
@param size: resize all images to this size.
@type: (int,int)
|
Must be overridden to implement the specific frame-grabbing required by different video sources.
|
Return an iterator for this video
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Apr 21 14:31:59 2015 | http://epydoc.sourceforge.net |