#NEWLINE# def locateText( self , text , locateTimeout = 0 , forceReload = False , **kwargs ) : #NEWLINE# #INDENT# if ( self . _cameraFrameOutput == 'filename' ) : #NEWLINE# #INDENT# return self . _locate ( self . _camera . frame , ( lambda frame : self . _ocr . ocrLocate ( frame , text ) ) , locateTimeout , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( ( 'unsupported camera frame output: "%s"' % self . _cameraFrameOutput ) )