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