What is the basis of comparison between two images in visual-regression Automation Testing?

What is the basis of comparison between two images in visual-regression Automation Testing?

Hi Tim,

Visual Regression automation in Lambdatest does pixel to pixel comparison between two images with granularity threshold upto 1200.