Class ErrorCorrection

java.lang.Object
com.google.zxing.pdf417.decoder.ec.ErrorCorrection

public final class ErrorCorrection extends Object

PDF417 error correction implementation.

This example is quite useful in understanding the algorithm.

Author:
Sean Owen
See Also:
  • Constructor Details

    • ErrorCorrection

      public ErrorCorrection()
  • Method Details

    • decode

      public int decode(int[] received, int numECCodewords, int[] erasures) throws ChecksumException
      Parameters:
      received - received codewords
      numECCodewords - number of those codewords used for EC
      erasures - location of erasures
      Returns:
      number of errors
      Throws:
      ChecksumException - if errors cannot be corrected, maybe because of too many errors