How to do image comparison through java


#1

I need to do image comparison for iOS and Android both. Any way to do it?


#2

This is a pretty generic ask… have you done any research on this? Appium can take screenshots of both Android and IOS, so that should be enough to get you started.


#3

We use imagemagick. My automation is in Ruby, but there is support for Java:


#4

I have done this but write now I am just getting result in string… Images are not same or images are same…need screenshot with difference highlighted In it


#5

Thanks…lemme look into it


#6

#7

Thanks…done it successfully


#8

Maybe you should try:


#9

is it free or paid…?


#11

Hi,
I have issues using appium/appium/blob/master/docs/en/writing-running-appium/image-comparison.md
Were you successful comparing images. Can you please assist me.
The error I see is below:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: opencv4nodejs module is required to use OpenCV features. Please install it first (npm i -g opencv4nodejs) and restart Appium. Read https://github.com/justadudewhohacks/opencv4nodejs#how-to-install for more details on this topic.


#12

Hey,
Did you find the solution for this issue?