Monkeyrunner图片对比问题
用monkeyrunner做图片对比测试时,同一张图片,框的位置范围大时,竟然失败,范围小点却成功,哪位大神帮忙?#Picture comparison
pic = image.getSubImage((3,4,576,316))
result = MonkeyRunner.loadImageFromFile('D:\\screenshotimage\\111.png')
time.sleep(2)
pic2 = result.getSubImage((3,4,576,316))
if(pic.sameAs(pic2,0.95)):
print('True')
else:
print('False') 图片太大 估计是比对到范围外了吧 对比的不同吧 :)
页:
[1]