Class OGLVideoCapture
About :
Texture loadin a video capture
Functions
Function | summury |
---|---|
__init__(self, video, dt=0.016, canvas=None, camdt=-1) | Creation of the OGLCamera Capture (more…) |
on_timer(self) | |
run(self, dt=0.016) | |
pause(self) | |
video_update_frame(self, command=’frame’, value=True) | |
stop_camera(self, app, canvas) | |
start_video(self, video, dt=0.01) | |
reset_video(self) | |
pause_video(self) | |
play_video(self) | |
set_cv2_image(self, image) |
Methods desciption :
init
def __init__(self, video, dt=0.016, canvas=None, camdt=-1)
Creation of the OGLCamera Capture
- → camera : int index of the camera
- → dt : time interval between two updates of the texture
- → canvas : associated canvas
- → camdt : time interval for the camera : -1 means
on_timer
def on_timer(self)
run
def run(self, dt=0.016)
pause
def pause(self)
video_update_frame
def video_update_frame(self, command='frame', value=True)
stop_camera
def stop_camera(self, app, canvas)
start_video
def start_video(self, video, dt=0.01)
reset_video
def reset_video(self)
pause_video
def pause_video(self)
play_video
def play_video(self)
set_cv2_image
def set_cv2_image(self, image)