您好,我正在使用 aspose-barcode-18.10.1-java.zip 测试 识别条形码功能。
附件是我使用的条码图。
正确的条形码编号是:6904589605004 但是使用 aspose-barcode-18.10.1-java.zip 识别出来的是:690458960500。“690458960500”跟正确的对比少了一位“4”。请问这个是什么原因呢?条码测试图.jpg (238.4 KB)
您好,请问题这个问题是否解决呢?我准备将这个产品用到我们的项目上,请您们尽快回复一下,谢谢。
此代码中的最后一个符号是校验和。 所以它要求你
应该使用以下代码来获取代码文本和校验和。
BarCodeReader reader = new BarCodeReader("D:\\Aspose\\UserData\\187523\\test.jpg");
reader.setChecksumValidation(ChecksumValidation.ON);
while(reader.read())
{
// print the code text, if barcode found
System.out.println("CodeText: " + reader.getCodeText().toString());
System.out.println("CheckSum: " + reader.getCheckSum());
// print the symbology type
System.out.println("Symbology type: " + reader.getCodeType());
}
此外,如果您需要其他信息,请随时回复我们。
The issues you have found earlier (filed as BARCODEJAVA-625) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by muhammadahmad