#NEWLINE# def __init__( self , device , width , height ) : #NEWLINE# #INDENT# '\n        Initialize camera\n        ' #NEWLINE# self . cap = cv2 . VideoCapture ( device ) #NEWLINE# self . cap . set ( cv2 . cv . CV_CAP_PROP_FRAME_WIDTH , width ) #NEWLINE# self . cap . set ( cv2 . cv . CV_CAP_PROP_FRAME_HEIGHT , device )