本文整理匯總了Python中Picture.findImgR方法的典型用法代碼示例。如果您正苦於以下問題:Python Picture.findImgR方法的具體用法?Python Picture.findImgR怎麽用?Python Picture.findImgR使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Picture
的用法示例。
在下文中一共展示了Picture.findImgR方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: startConversation
# 需要導入模塊: import Picture [as 別名]
# 或者: from Picture import findImgR [as 別名]
def startConversation(agent):
print '--> start conversation'
result = pic.findImgR(panel.StationServices, agent)
while not result:
time.sleep(0.5)
result = pic.findImgR(panel.StationServices, agent)
mouse.doubleClickAtP(result)
print 'wait until conversation start'
while not findAtMissionLeft('info'):
time.sleep(0.2)
print '<-- start conversation\n'
return True
示例2: find
# 需要導入模塊: import Picture [as 別名]
# 或者: from Picture import findImgR [as 別名]
def find(rect, source, threshould):
f = 'img/' + source + '.bmp'
if not os.path.exists(f):
f = '../' + f
if not os.path.exists(f):
print 'source "' + source + '" do not exists!'
return None
result = pic.findImgR(rect, f, threshould)
if not result:
print 'can not find "' + source + '"!'
else:
print '"' + source + '" finded!'
return result