Home > Image Comparison

Compare images using Java

This code will compare pixel from base image with other image. If both pixel at location (x,y) are same then add same pixel in result image without change. Otherwise it modifies that pixel and add to our result image. In case of baseline image height or width is larger than other image

This Article is TAGGED in , , . Read more

Code to perform Image comparison in protractor

To perform image comparison in GUI Testing we need to install protractor-image-comparison module it can be installed using below command. Open command prompt and run below command. [crayon-67407738f311f922389513/] Add below code in onPrepare function of configuration file [crayon-67407738f3125080544843/] Code to do image comparison [crayon-67407738f3128438309950/] ImageName is image file name exist in baseline folder. If image is not

This Article is TAGGED in , . Read more