Code39Standard Barcodes not reading

I am working on implementing the Aspose Barcode Recognition software into my current system to replace an existing barcode recognition software. When I used Aspose version 2.7.0, this barcode would read fine. The newest version (4.4.0), however, will not read it at all. I have tried playing with the ImageBinarizationHints and even the OrientationHints (though to be honest, using OrientationHints is not really feasible in my app due to me not having control of how the documents are scanned in). I am using Code39Standard barcodes within tiff documents, but the newest version just doesn’t seem to like them. I am attaching an example document to hopefully help identify why this is.


Thanks,

Dustin

Hi,


Thank you for your inquiry and sample file.

I tried to read the barcode from your sample file using the Aspose.BarCode for Java v4.4.0 as well as v2.7.0, but didn’t succeed. I have used the sample code provided in this article.

Will it be possible for you to share your source code for our review? Thanks

I actually took that example and changed the line


com.BarCodeReader reader = new BarCodeReader(_bufferedImage, BarCodeReadType.Datamatrix);

to

com.aspose.barcoderecognition.BarCodeReader reader = new com.aspose.barcoderecognition.BarCodeReader(_bufferedImage, BarCodeReadType.Code39Standard);

On version 2.7.0, this is working. On 4.4.0 (making the appropriate change from BarCodeReadType.Code39Standard to BarCodeReadType.getCode39Standard()), this does not work. Here is my full code:

public static void main(String[] args)
{
String fileName = “C:/test/Unreadable.tif”;
try
{
Iterator readers = javax.imageio.ImageIO.getImageReadersBySuffix(“tiff”);
if (readers.hasNext()) {
File fi = new File(fileName);
ImageInputStream iis = javax.imageio.ImageIO.createImageInputStream(fi);
TIFFDecodeParam param = null;
ImageDecoder dec = ImageCodec.createImageDecoder(“tiff”, fi, param);
//Get the page count of the tiff image
int pageCount = dec.getNumPages();
ImageReader _imageReader = (ImageReader) (readers.next());
if (_imageReader != null) {
_imageReader.setInput(iis, true);
//Feed each page to the BarCodeReader
for (int i = 0; i < pageCount; i++) {
BufferedImage _bufferedImage = _imageReader.read(i);
com.aspose.barcoderecognition.BarCodeReader reader = new com.aspose.barcoderecognition.BarCodeReader(_bufferedImage, BarCodeReadType.Code39Standard);
//Read the barcodes in a single page
while (reader.read())
{
System.out.println(reader.getCodeText());
}
}
}
}
}
catch (Throwable e)
{
e.printStackTrace();
}
}

Hi Dustin,


Thank you for the elaboration.

I am able to confirm that Aspose.BarCode for Java v4.4.0 couldn’t recognize the barcode from your provided sample. Where as it previous version, that is Aspose.BarCode for Java v2.7.0 can recognize it just fine. To investigate this matter, I have logged a ticket (Id: BARCODJAVA-33123) in our tracking system. We will keep you posted with updates on this.

Regards,

Just following up to see if there has been any progress on this or if there is anything else you need from me at this time.

Hi Dustin,


I am afraid, I have not received any updates in this regard. Although, I have requested an ETA from the development team. As soon as I hear from them, I will let you know here.

I am using the 4.5 version in .NET and I am having problems with Code 39 Standard barcodes as well. Not sure if these are related.

Hi Patrick,


Can you please start a new thread and attach your sample image for our review?

Thanks in advance.

Hi Dustin,


Just to let you know that I have attached this thread to another ticket (BARCODENET-33165) with higher priority. Also note that the new ticket has been logged in .NET space because the latest version of .NET product can not recognize the barcode from your shared sample. Once fixed in .NET version, the changes will automatically propagate to Java product.

We are sorry for your inconvenience.

I see that the ticket (BARCODENET-33165) is now marked as fixed. Is that change currently available in the 4.5.0 version of Java, or is it slated for a later release?


Thanks,

Dustin Kanzlemar

Hi Dustin,


Thank you for writing back.

I have checked the status of the ticket BARCODENET-33165. I can see, it has been marked “Fixed” by the development team, and the fix will be available with next release of Aspose.BarCode for .NET v4.8.0.

As you may know, Aspose.BarCode for Java product is the ported version of Aspose.BarCode for .NET. Therefore, if an issue is fixed in .NET version of the product, it will automatically propagate to the Java version in its next release.

We normally publish .NET version at the start of each month and the Java version in subsequent two weeks, due to the porting activity. We will inform you once Aspose.BarCode for Java is available with the required fix.

Thank you for your patience and consideration.

The issues you have found earlier (filed as BARCODENET-33165) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Is there an E.T.A. of when this fix will be propagated to the Java version? I see that the .Net fix was pushed in early June, but the latest Java version appears to be from April.


Thanks,

Dustin Kanzlemar

Hi Dustin,


Thank you for your inquiry.

We are currently working to port our .NET product to Java version. The projected release schedule for Aspose.BarCode for Java is the mid of August. As soon as new version is available for public use, we will notify you here.

Regards,