PDF417 recognition doesnt work

Discussions about PDF417 barcode reading and writing.
Post Reply
npits
Posts: 2
Joined: Fri May 23, 2014 12:39 pm

PDF417 recognition doesnt work

Post by npits » Fri May 23, 2014 1:13 pm

Hi,

Can you see if I'm doing something wrong with PDF417 recognition?
I'm sending you the sample image in the attachment.

The thing is that this image is successfully recognized as a PDF417 barcode with other software, but I would like to use gdpicture components...

This is the code I'm using:

Code: Select all

	string _hubFilePath = @"C:\Pictures\P0018.tiff";

	try
	{
		using (GdPicture10.GdPictureImaging oGdPictureImaging = new GdPicture10.GdPictureImaging())
		{
			int ImageID = oGdPictureImaging.CreateGdPictureImageFromFile(_hubFilePath);
			if (ImageID != 0)
			{
				try
				{
					string[] scanResult = null;
					int barcodeCount = 0;
					GdPicture10.GdPictureStatus status;
					
					// PDF417
					status = oGdPictureImaging.BarcodePDF417ReaderDoScan(ImageID, GdPicture10.BarcodePDF417ReaderScanMode.BestQuality, 1);
					if (status != GdPicture10.GdPictureStatus.OK)
						throw new ApplicationException("GDIPicture exception");

					barcodeCount = oGdPictureImaging.BarcodePDF417ReaderGetBarcodeCount();
					if (barcodeCount != 1)
						throw new ApplicationException("Barcode not found");
	
					scanResult = oGdPictureImaging.BarcodePDF417ReaderGetBarcodeValue(1);

				}
				finally
				{
					oGdPictureImaging.ReleaseGdPictureImage(ImageID);
				}
			}
		}
	}
	catch (Exception ex)
	{
		Console.WriteLine(ex.ToString());
	}
Attachments
P0018.tiff
sample PDF417 image
P0018.tiff (338.03 KiB) Viewed 1910 times

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: PDF417 recognition doesnt work

Post by SamiKharma » Sat May 24, 2014 5:01 pm

Hi,

The image is not a document image, which is what GdPicture is designed to detect barcodes in. Also, the image was taken in a very low dpi, and then scaled up, making it very low quality.

Best,
Sami

npits
Posts: 2
Joined: Fri May 23, 2014 12:39 pm

Re: PDF417 recognition doesnt work

Post by npits » Tue May 27, 2014 2:33 pm

Hi Sami,

What is document image?

Here is link to another sample image that ZXing.BarcodeReader can decode, but GdPicture10.GdPictureImaging can not.
https://dl.dropboxusercontent.com/u/4515169/TEST4.jpg
Image

Is there any tip on GdPicture10.GdPictureImaging configuration or something similar that could help me with PDF417 recognition?


Thank you

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: PDF417 recognition doesnt work

Post by SamiKharma » Tue May 27, 2014 4:18 pm

Hi,

I suspect the problem is with the low dpi of the image. Nonetheless, the issue has been reported internally for evaluation and resolution by the technical team.
We will let you know as soon as it is resolved.

Best,
Sami

User avatar
Loïc
Site Admin
Posts: 5576
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PDF417 recognition doesnt work

Post by Loïc » Fri Jul 31, 2015 3:21 pm

Hello,

This barcode is correctly detected by our latest version.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest