ct_Movies Module

class ct_Movies.Movie(folder)

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_click()

Returns last click and cleans it

get_frame_index()

Returns the frame index

get_frame_path()

Returns the path of the current image

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_size()

Get video size

get_speed()

Returns playing speed

get_speed_index()
get_speeds()

Returns a sorted list of the available speeds

get_view()

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()

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

pause()

Pause

play()

Play

set_click(tup)
set_key_pressed(k)
set_name(name)

Set a name for the sequence

set_position(p)

Sets the position index

set_size(tup)

Sets video size

set_speed_index(speed_i)

Sets a new speed based on the speed index

class ct_Movies.Movies

Class managing movies

add_movie(folder)

Instanciates a new movie

Previous topic

ct_Cells Module

Next topic

ct_OpenCV Module

This Page