Image Recognition
Posted: Fri Jan 06, 2012 8:01 am
Hi all,
I am finding difficult to use Ranorex to recognize the color combination.
I have two similar images in which only the color differs from each other.
For eg, one is a colored pic where as other one is black and white pic, now when comparing these two images the ranorex is showing boolean value true even though the colors are different.
Here is my code:
//Capture Image(Colored Image)
Bitmap rightImage= repo.WebDocument.RightSideContainerLayoutRegion.CaptureCompressedImage();
//Here, the right side container layout is changed to another other image( with black and white)
if(Validate.CompareImage(repo.WebDocument.RightSideContainerLayoutRegionInfo,rightImage,new Imaging.FindOptions(0.10), "", false))
{
Report.Success("Image changed successfully");
Report.Screenshot();
}
else
{
Report.Failure("Image not changed");
}
Can some one help me...??
Thanks,
Praveen
I am finding difficult to use Ranorex to recognize the color combination.
I have two similar images in which only the color differs from each other.
For eg, one is a colored pic where as other one is black and white pic, now when comparing these two images the ranorex is showing boolean value true even though the colors are different.
Here is my code:
//Capture Image(Colored Image)
Bitmap rightImage= repo.WebDocument.RightSideContainerLayoutRegion.CaptureCompressedImage();
//Here, the right side container layout is changed to another other image( with black and white)
if(Validate.CompareImage(repo.WebDocument.RightSideContainerLayoutRegionInfo,rightImage,new Imaging.FindOptions(0.10), "", false))
{
Report.Success("Image changed successfully");
Report.Screenshot();
}
else
{
Report.Failure("Image not changed");
}
Can some one help me...??
Thanks,
Praveen