Code39Standard Barcodes not reading

Last post 05-15-2012, 1:53 AM by babar.raza. 10 replies.
Sort Posts: Previous Next
  •  01-18-2012, 9:44 AM 356006

    Code39Standard Barcodes not reading Java

    Attachment: Present (inaccessible)
    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
     
  •  01-18-2012, 11:54 AM 356051 in reply to 356006

    Re: Code39Standard Barcodes not reading Java

    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

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  01-18-2012, 12:26 PM 356064 in reply to 356051

    Re: Code39Standard Barcodes not reading Java

    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();
    }
    }
     
  •  01-18-2012, 12:53 PM 356070 in reply to 356064

    Re: Code39Standard Barcodes not reading Java

    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,

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-06-2012, 8:09 AM 359480 in reply to 356070

    Re: Code39Standard Barcodes not reading

    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.
     
  •  02-07-2012, 1:25 AM 359642 in reply to 359480

    Re: Code39Standard Barcodes not reading Java

    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.

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-13-2012, 2:30 PM 361207 in reply to 359642

    Re: Code39Standard Barcodes not reading

    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. 
     
  •  02-14-2012, 12:00 PM 361571 in reply to 361207

    Re: Code39Standard Barcodes not reading

    Hi Patrick,

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

    Thanks in advance. 

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  03-14-2012, 2:35 PM 368287 in reply to 361571

    Re: Code39Standard Barcodes not reading Java

    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.

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  05-14-2012, 1:11 PM 382535 in reply to 368287

    Re: Code39Standard Barcodes not reading

    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
     
  •  05-15-2012, 1:53 AM 382701 in reply to 382535

    Re: Code39Standard Barcodes not reading .NET

    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.

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
View as RSS news feed in XML