The image adapter allows you to compare two images. It should be clear that images are compared pixel by pixel. That is why a function has been created to compare and return the percentage of the difference:
The imagen adapter has only one parameter. This parameter is the path to the image we want to work with: