嗨,我正在尝试借助 AndroidViewClient 5.1.1 比较图像以下是我编写的代码,但它总是在打印两个图像都不相同。这是使用 sameAs 函数的正确方法吗?如果不能,请告诉我正确的使用方法。
from PIL import Image
image1=('Smell.jpg')
image2=('Smell1.jpg')
if sameAs(image1, image2, percent=1.0):
print "Both Images are same"
else:
print"Both images are not same"
在使用monkeyRunner时,我们用来加载图像..我们是否也必须加载新版本。