Hi, I have a problem with barcode pdf 417 reader on drivers license. When I am trying to read from it. Response has extra strings like
DCB, DCD, DCS etc. embedded along with the data.
How can we get rid of these strings?
I am using full license.
This is code:
Byte[] bitmapData = Convert.FromBase64String(dlbackstring);
MemoryStream streamBitmap = new MemoryStream(bitmapData);
Bitmap bitImage = new Bitmap((Bitmap)Image.FromStream(streamBitmap));
// Initialize the BarCodeReader
BarCodeReader reader = new BarCodeReader(bitImage, BarCodeReadType.Pdf417);
// Call Read() method in a loop
while (reader.Read())
{
dlbackdesc.Append(reader.GetCodeText());
}
reader.Close();
Output I am receiving from reading barcode:
@\n\u001e\rANSI 636014040002DL00410299ZC03400042DLDCAC\nDCB01\nDCDNONE\nDBA10092022\nDCSJONNALA\nDACGREG \nDADWASMUTH \nDBD08182017\nDBB10091990\nDBC1\nDAYBLK\nDAU066 IN\nDAG21641 CANADA RD\nDAILAKE FOREST\nDAJCA\nDAK926300000 \nDAQE1218956\nDCF08/11/2008507RB/DDFD/22\nDCGUSA\nDDEU\nDDFU\nDDGU\nDAW165\nDAZBLK\nDCK17237E21043440401\nDDB04162010\nDDD0\n\rZCZCA\nZCBCORR LENS\nZCCBLK\nZCDBLK\nZCE\nZCF\n\r
Attached PDF 417 image:
license_back.JPG (949.3 KB)
Thanks