I scan an image and add this image to an empty template.
Then when I scan the same image and use the function: ADRGetCloserTemplateForGdPictureImage
for recognition, I would expect at least a 98% Confidence level.
However, ADRGetLastConfidence returns only 42%. WHY?
iTemplateID = oImaging.ADRCreateTemplateEmpty();Loïc wrote: Could you give the code you are using ?
oImaging.GetVersion() returns 6.5Loïc wrote: Are you using the latest GdPciture.NET edition ? We fixed a bug recently in ADR matching.
foundrec = oImaging.ADRGetCloserTemplateForGdPictureImage(imageId);
oImaging.ADRGetTemplateTag(foundrec); ( returns "Test" )
oImaging.ADRGetLastConfidence(); ( returns 42.3 )
I was more waiting for the code used to acquire the 2 images.
Could you attach here or send us by email to esupport (at) gdpicture (dot) com the 2 images (the template and the other test image).
I have sent you an email with only 1 bmp file. With this file I create a template
and with the same file I ask ADR for recognition.
Only 44 is returned. I would have expected at least 99!
I think you are not using the latest edition available. I got 100% confidence:
Code: Select all
Dim ImageID As Integer = Imaging1.CreateGdPictureImageFromFile("") Dim TemplateID As Integer = Imaging1.ADRCreateTemplateEmpty() Imaging1.ADRAddGdPictureImageToTemplate(TemplateID, ImageID) Imaging1.ADRGetCloserTemplateForGdPictureImage(TemplateID) MsgBox(Imaging1.ADRGetLastConfidence())
Please, check you are using at least GdPicture.NET 6.5.3
Let me know if the problem persists.
With best regards,
Who is online
Users browsing this forum: No registered users and 2 guests