* It will not decoded "extended Code 39" sequences.
*
* @param usingCheckDigit if true, treat the last data character as a check digit, not
- * data, and verify that the checksum passes
+ * data, and verify that the checksum passes.
*/
public Code39Reader(boolean usingCheckDigit) {
this.usingCheckDigit = usingCheckDigit;
* the full ASCII character set.
*
* @param usingCheckDigit if true, treat the last data character as a check digit, not
- * data, and verify that the checksum passes
- * @param extendedMode if true, willa tetmpt to decode extended Code 39 sequences in the
- * text
+ * data, and verify that the checksum passes.
+ * @param extendedMode if true, will attempt to decode extended Code 39 sequences in the
+ * text.
*/
public Code39Reader(boolean usingCheckDigit, boolean extendedMode) {
this.usingCheckDigit = usingCheckDigit;
if (extendedMode) {
resultString = decodeExtended(resultString);
}
+ float left = (float) (start[1] + start[0]) / 2.0f;
+ float right = (float) (nextStart + lastStart) / 2.0f;
return new Result(
resultString,
null,
new ResultPoint[]{
- new GenericResultPoint((float) (start[1] - start[0]) / 2.0f, (float) rowNumber),
- new GenericResultPoint((float) (nextStart - lastStart) / 2.0f, (float) rowNumber)},
+ new GenericResultPoint(left, (float) rowNumber),
+ new GenericResultPoint(right, (float) rowNumber)},
BarcodeFormat.CODE_39);
}
return decoded.toString();
}
-}
\ No newline at end of file
+}