ct_Movies Module

class ct_Movies.Movie

Class representing a video extract includes some playback capabilities

change_mode()

Switches between automatic and manual mode

change_play()

Play/pause

change_speed(increment)

Increases or decreases playing speed

change_view()

Changes current view TO BE HIGHLY IMPROVED

clear_key_pressed()

Sets the key_pressed to its default value

close()

Close this movie

get_association_list()
get_association_table()
get_click()

Returns last click and cleans it

get_current_frame_32bits(channel=None)
get_current_frame_CV(channel=None)

Returns the current frame of the specified channel (or the current view if not specified. The format is the OpenCV image format (most probably the IplImage)

get_frame(i=None, channel=None, depth=8, col_channels=1, fmt='cv')

The main function to get any image default parameters are : i : displayed image channel : displayed channel depth : 8 bits col_channels : 1 (grayscale) Output format is OpenCV image

get_frame_displayed()
get_frame_index()

Returns the frame index

get_frame_path(channel=None)

Returns the path of the current image This function should not be called since no virtual saving has been implemented so far, use get_current_frame instead

get_key_pressed()

Returns last key pressed and if it has just been clicked

get_mode()

Returns the playing mode

get_name()

Returns name of the movie FOT THE MOMENT, the folder

get_nb_frames()

Returns the number of frames

get_overlay(im, i)

Is i useful? Maybe for the fps/... drawing)

get_size()

Get video size

get_speed()

Returns playing speed

get_speed_index()
get_speeds()

Returns a sorted list of the available speeds

get_view()
get_view_index()

Returns index of current view

is_playing()

Returns True if the movie is playing

is_running()

Returns if the movie is still open

next_frame()

NO FALSE ! -> Returns a tuple containing the next image and a boolean saying if it is different from the previous one Should be called once per loop

set_channels(channels)
set_click(tup)
set_display_m_instance(inst)
set_drag_drop(tup)
set_frame_displayed(i)
set_frame_index(i)
set_key_pressed(k)
set_mode(mode)
set_movie_opencv(movie_opencv)

Sets a reference to the associated Movie_OpenCV instance

set_name(name)

Set a name for the sequence

set_play(play)

Play/pause management

set_position(p)

Sets the position index

set_size(tup)

Sets video size

set_speed(speed)
set_speed_index(speed_i)

Sets a new speed based on the speed index

class ct_Movies.Movies

Class managing movies

add_movie(channels, m=None)

Instanciates a new movie

new_movie()

Returns a movie without adding it to the final list

This Page