Barcode CODE39 reading problem


#1

Hello.
Barcode is not found in this file ((

12.JPG (245.6 KB)


#2

@fuckel83

Please share your sample code showing how the barcode is generated so that we could investigate in detail.


#3

Of course, it is from example:

    BarCodeReader reader = new BarCodeReader("D:/1/24.JPG", DecodeType.CODE_39_STANDARD);
    reader.setRecognitionMode(RecognitionMode.MaxBarCodes);
    while (reader.read()) {
    System.out.println("Type: " + reader.getCodeType() + " Text: " + reader.getCodeText());
    }

#4

@fuckel83

Please follow the code sample given below to generate the Barcode:

BarCodeBuilder  generator = new BarCodeBuilder ();
String codeText = "EAA000000G5FP";
generator.setCodeText(codeText);
generator.setEncodeType(EncodeTypes.CODE_39_STANDARD);
generator.save(dataDir + "Code39Standard_1.jpg");

For reading generated barcode, please follow the code sample given below:

BarCodeReader reader = new BarCodeReader(dataDir + "Code39Standard_1.JPG", com.aspose.barcode.barcoderecognition.DecodeType.CODE_39_STANDARD);
reader.setRecognitionMode(RecognitionMode.MaxBarCodes);
while (reader.read()) {
     System.out.println("Type: " + reader.getCodeType() + " Text: " + reader.getCodeText());
}

Moreover, we were able to reproduce this issue and have logged it with ID “BARCODEJAVA-573” for further investigation. You will automatically be informed here once we have more information to share.


#5

Thanks a lot. But I need to recognized barcodes generated by other source systems. ((


#6

@fuckel83

Thank you for your feedback.
We are working on this issue and we will update you as soon as we have more information to share with you.


#7

Thanks a lot.
Another one barcode (((
31.JPG (193.1 KB)


#8

And one more… Recognized: EAK00%0%0644%
33.JPG (194.3 KB)


#9

And one more… Recognized:
Type: Code39Standard Text: A1VUA1UUA11X
Type: Code39Standard Text: C1VUA1UUA11X
Type: Code39Standard Text: UA171
Is not correct… ((

37.JPG (74.3 KB)


#10

@fuckel83

We have recorded the details and are considering these images as well for the issue resolution.


#11

Most of these barcodes have double types of errors noise and blur. It is difficult combination of error which makes some images unrecognizable.

The second main problem here is Code39 which was developed in 1974 and doen’t have any checksum. It is just set of bar unions and it has the same error correction as ordinary text. In this way it suffers from the same issues as any machine reading text systems. After the recognition so corrupted Code39 we cannot check if this barcode is correct, and this leads to the situation when barcode can be recognized incorrectly on even not recognized.

If you want in 2018 to use some barcodes with strong checksum in your documents I advice you to use some barcodes with strong checksum like QR, Datamatrix or PDF417. Datamatrix and PDF417 has rectangular barcodes which can be fit to the same area as Code39.

We will try to fix this issue, but some barcodes of this type could stay incorrectly recognized or even not recognized.


#12

Hello. Thanks a lot. I would like to use but I couldn’t change the type of barcode in other systems. But I’ll try to create a request(task) for these systems.
Have a nice day!


#13

The issues you have found earlier (filed as BARCODENET-37010) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by muhammadahmad