#NEWLINE# def get_image( self ) : #NEWLINE# #INDENT# '\n        Captures an image\n        returns: Image as jpeg encoded binary string, None if no frame\n        ' #NEWLINE# ( ret , frame ) = self . cap . read ( ) #NEWLINE# if ret : #NEWLINE# #INDENT# ( ret , jpeg ) = cv2 . imencode ( '.jpg' , frame ) #NEWLINE# if ret : #NEWLINE# #INDENT# data = numpy . array ( jpeg ) #NEWLINE# return data . tostring ( )