#NEWLINE# def get_capture_dimensions( capture ) : #NEWLINE# #INDENT# 'Get the dimensions of a capture' #NEWLINE# width = int ( capture . get ( cv2 . CAP_PROP_FRAME_WIDTH ) ) #NEWLINE# height = int ( capture . get ( cv2 . CAP_PROP_FRAME_HEIGHT ) ) #NEWLINE# return ( width , height )