Matching image with another image and get result in percentage format
Posted: 2015-03-13T17:35:26-07:00
Hi all,
I am newbie to imageMagick. I have a requirement to verify that image present in my application or not. For this I am taking the screenshot of my app then I have to check in captured app screenshot, contains a particular image or not which I can pass a expected image. Using rmagick, it is giving output as an image with highlighted area that is matched but instead of getting output as an image I want output in percentage format means how much percentage it was matched. Hope, I am able to clarify my query.
Image1(parent image, whole app screen shot)
Image2(child image, small image which will be present in parent image )
If image2 present in image1 then output 100% matched
I am newbie to imageMagick. I have a requirement to verify that image present in my application or not. For this I am taking the screenshot of my app then I have to check in captured app screenshot, contains a particular image or not which I can pass a expected image. Using rmagick, it is giving output as an image with highlighted area that is matched but instead of getting output as an image I want output in percentage format means how much percentage it was matched. Hope, I am able to clarify my query.
Image1(parent image, whole app screen shot)
Image2(child image, small image which will be present in parent image )
If image2 present in image1 then output 100% matched