tired other way to set images path but it does not support with makeDiff method. Is there any support for File path ?
if I use path then error is Cannot resolve method 'makeDiff(java.lang.String, java.lang.String)'
code use as file path but does not work-
File sdCard = Environment.getExternalStorageDirectory();
String path1, path2;
path1 = sdCard.getAbsolutePath() + "/1.jpg";
path2 = sdCard.getAbsolutePath() + "/cam1.jpg";
code used -
BufferedImage actualImage = ImageIO.read(new File("/Users/ashokd/Desktop/a.png"));
BufferedImage expectedImage = ImageIO.read(new File("/Users/ashokd/Desktop/b.png"));
ImageDiffer imgDiff = new ImageDiffer();
ImageDiff diff = imgDiff.makeDiff(actualImage, expectedImage);
if(diff.hasDiff()==true)
{
System.out.println("Images are Not Same");
}
else {
System.out.println("Images are Same");
}
[
