copyclare.video package#

Submodules#

copyclare.video.camera module#

Contributors: Adi Bozzhanov

class copyclare.video.camera.CameraWorker(exercise)#

Bases: object

Camera worker that can ignore ui and threading logic and process just data.

work()#

Generator that yields processed frames and accesses AccuracyModel

copyclare.video.thread_manager module#

Contributors: Adi Bozzhanov, Yan Lai, Sree Sanakkayala

class copyclare.video.thread_manager.ThreadManager#

Bases: object

Manages video and camera threads that are run on the exercise page

add_thread(thread, is_camera=False)#

Adds a thread to the list of considered threads

thread_finished()#

Makes sure that both threads are finished before an attempt intance is created in the db

copyclare.video.video module#

Contributors: Adi Bozzhanov

class copyclare.video.video.VideoWorker(exercise)#

Bases: object

Video worker that uses opencv to display video on the screen. This class does not use any pyside logic but rather focuses on producing the actual data.

work()#

Generator that yields opencv frames to be displayed

Module contents#

Contributors: Adi Bozzhanov