This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/compare-files.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Compare images: Identify differences in two images | Nutrient .NET SDK

Nutrient .NET SDK (formerly GdPicture.NET) enables comparing two images. The example below uses Nutrient .NET SDK’s Automatic Document Recognition (ADR) technology:

private void Button1_Click(System.Object sender, System.EventArgs e)
{
GdPicture.GdPictureImaging oGdPictureImaging = new GdPicture.GdPictureImaging();
double Confidence = 0;
oGdPictureImaging.SetLicenseNumber("XXX"); // Replace XXX with a demo or commercial license key
int ImageID1 = oGdPictureImaging.CreateGdPictureImageFromFile(""); // Opening image 1
int ImageID2 = oGdPictureImaging.CreateGdPictureImageFromFile(""); // Opening image 2
int TemplateID = oGdPictureImaging.ADRCreateTemplateFromGdPictureImage(ImageID1);
oGdPictureImaging.ReleaseGdPictureImage(ImageID1);
oGdPictureImaging.ADRGetCloserTemplateForGdPictureImage(ImageID2);
oGdPictureImaging.ReleaseGdPictureImage(ImageID2);
Confidence = oGdPictureImaging.ADRGetLastConfidence();
oGdPictureImaging.ADRDeleteTemplate(TemplateID);
MessageBox.Show("The two images are the same at: " + Conversion.Str(Confidence) + "%");
}