Hi all,
I'm using the last version of GdPicture 12 and I need to detect Patch Code on a A4 page.
With the following images:
the PatchCodeReaderDoScan() does not recognize the patch codes.
I'm trying using the example installed with SDK: barcode_recognition
Any idea?
Thank you in advance,
Andrea
Unable to detect patch code
Unable to detect patch code
- Attachments
-
- 00000003.png (23.82 KiB) Viewed 13308 times
Re: Unable to detect patch code
Hi,
Please try below C# code with the first example.
Please try below C# code with the first example.
Code: Select all
string strMsg = string.Empty;
using (GdPictureImaging gdPictureImaging = new GdPictureImaging())
{
int intImgID = gdPictureImaging.CreateGdPictureImageFromFile(@"C:\Users\user\Desktop\00000003.jpg");
//gdPictureImaging.FxBlackNWhite(intImgID, BitonalReduction.Stucki);
gdPictureImaging.ConvertTo1Bpp(intImgID);
Single Angle = gdPictureImaging.GetSkewAngle(intImgID, 15);
gdPictureImaging.RotateAnglePreserveDimensionsCenterBackColor(intImgID, -Angle, Color.Black);
gdPictureImaging.PatchCodeReaderDoScan(intImgID);
//gdPictureImaging.ReleaseGdPictureImage(intImgID);
strMsg = string.Empty;
for (int i = 1; i <= gdPictureImaging.PatchCodeReaderGetCodeCount(); i++)
{
strMsg += "Barcode type: " + gdPictureImaging.PatchCodeReaderGetCodeType(i).ToString() + "\r\n";
}
}
MessageBox.Show(strMsg);
Who is online
Users browsing this forum: No registered users and 1 guest