Module Video

This module opens video and create class video. It defines all functions needed for visualization on GUI.

class Video.ImageFpsWindow(video)[source]
accept(self) None[source]
class Video.RenameImageWindow(filepattern)[source]
class Video.Video(output_console)[source]
read_file(filepath, param, image_input)[source]

read video and default associated files as projection, intrinsic camera parameters. Define parameters of the selected video (resolution, fps, etc…)

param filepath:

path of the selected video

param param:

dictionary to implement

param image_input:

flag to indicate image reading

return ROI:

pixel of the transformed (or original) ROI

rtype:

int

return window_frame:

temporal windows for analysis (in frame number)

rtype:

list (first frame, end frame)

return original_resolution:

resolution of original frame

rtype:

list (height,width)

return fps:

temporal resolution , frame per second

rtype:

float

return duration:

duration of the video

rtype:

float

return proj_table:

table of the ground reference point if exist (file name must be projection.txt in the

video folder) :rtype: array :return interior_orient: intrinsic camera parameters (file name must be interiorGeometry.txt in the video folder) :rtype: class object (defined in PhotogrammetryFunctions.py)

Video.copy_and_rename_image(filepath, filepattern_out)[source]

Create new image with name compatible with openCv video reader

Return proj_table:

table of the ground reference point if exist (file name must be projection.txt in the video

folder) :rtype: array :return interior_orient: intrinsic camera parameters (file name must be interiorGeometry.txt in the video folder) :rtype: class object (defined in PhotogrammetryFunctions.py)