Hi i am trying compare images with help of AndroidViewClient 5.4.3 following is the code which i have written, but always it is printing Both images are not same. Is this the correct way of using sameAs function? if not could you please let me know the correct way of using it.
! /usr/bin/env python
import os
import sys
import PIL
from PIL import Image
try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
pass
from com.dtmilano.android.viewclient import ViewClient
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"
Hi i am trying compare images with help of AndroidViewClient 5.4.3 following is the code which i have written, but always it is printing Both images are not same. Is this the correct way of using sameAs function? if not could you please let me know the correct way of using it.
! /usr/bin/env python
import os import sys import PIL from PIL import Image
try: sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src')) except: pass from com.dtmilano.android.viewclient import ViewClient
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"