When BarCode reader Decodes a GST-Databar Expanded , the result is incorrect in java.
For example , with the attached document the result must be 0112587455464-EHFcGjYu but BarCode reader gives the result (01)12587455463918FcGjYu
Kindly Help me on this .
Java version : 1.6
Aspose version : 17.01
Thanks,
sabbarish.sk
GS1-databar-expanded.gif (4.3 KB)
@sabbarish123,
Thanks for the image file.
I tested using the following sample code using our newer versions with your image file, it does not print the code text:
e.g
Sample code:
String bmp = "f:\\files\\GS1-databar-expanded.gif";
com.aspose.barcode.barcoderecognition.BarCodeReader reader = new com.aspose.barcode.barcoderecognition.BarCodeReader(bmp, com.aspose.barcode.barcoderecognition.DecodeType.DATABAR_EXPANDED);
if (reader.read())
{
System.out.println(reader.getCodeText());
}
Could you share your sample code or at least which exact decode type you are setting, we will check may log a ticket for it soon.
Hi @Amjad_Sahi,
Thanks for the quick response .
I am declaring decode type as below,
BarCodeReader reader = new BarCodeReader(fileStream, DecodeType.ALL_SUPPORTED_TYPES);
(ALL_SUPPORTED_TYPES)
My sample Code follows,
BarCodeReader reader = new BarCodeReader(fileStream, DecodeType.ALL_SUPPORTED_TYPES);
if (reader.read()) {
System.out.println(reader.getCodeText());
}
Thanks,
sabbarish.sk
@sabbarish123,
Thanks for providing further details.
After an initial test, I am managed to reproduce the issue but differently using the newer version (e.g Aspose.BarCode for Java v19.5). I found it does not read the barcode text in your provided .gif file:
e.g
Sample code:
String bmp = “f:\files\Pharmacode1voie.gif”;
String bmp = "f:\files\GS1-databar-expanded.gif";
com.aspose.barcode.barcoderecognition.BarCodeReader reader = new com.aspose.barcode.barcoderecognition.BarCodeReader(bmp, com.aspose.barcode.barcoderecognition.DecodeType.ALL_SUPPORTED_TYPES);
if (reader.read())
{
System.out.println(reader.getCodeText());
}
I have logged a ticket with an id “BARCODEJAVA-722” for your issue. We will look into it soon.
Once we have an update on it, we will let you know.
You can try Vintasoft or Manatee engine and obtain the same recognition result
"<“FNC1”>"0112587455463918FcGjYu
"<“FNC1”>"01 - converts to (01) in our engine (by GS1 rules).
]e00112587455463918FcGjYu
@alexander.gavriluk , Thank you . aspose doesn’t support it ?
Aspose engine reads the same result as other engines (so, I think it is correct). Sometimes barcode images have different caption from real codetext coded in barcode.
The issues you have found earlier (filed as BARCODEJAVA-722) have been fixed in Aspose.BarCode for Java v19.9. This message was posted using BugNotificationTool from Downloads module by ahsaniqbalsidiqui