#NEWLINE# def locate( needleImage , haystackImage , **kwargs ) : #NEWLINE# #INDENT# kwargs [ 'limit' ] = 1 #NEWLINE# points = tuple ( locateAll ( kwargs , haystackImage , ** kwargs ) ) #NEWLINE# if ( len ( points ) > 0 ) : #NEWLINE# #INDENT# return points [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None