Class QrCodeDecoderBits

java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeDecoderBits
All Implemented Interfaces:
VerbosePrint

public class QrCodeDecoderBits extends Object implements VerbosePrint
After the data bits have been read this will decode them and extract a meaningful message.
  • Field Details

    • ignorePaddingBytes

      public boolean ignorePaddingBytes
      If true to it won't check the value of padding bytes. Run into an off by one error
  • Constructor Details

    • QrCodeDecoderBits

      public QrCodeDecoderBits(@Nullable @Nullable String forceEncoding, String defaultEncoding)
      Parameters:
      forceEncoding - If null then the default byte encoding is used. If not null then the specified encoding is used.
  • Method Details

    • applyErrorCorrection

      public boolean applyErrorCorrection(QrCode qr)
      Reconstruct the data while applying error correction.
    • decodeMessage

      public boolean decodeMessage(QrCode qr)
      Decodes the message encoded in the corrects bits inside the QR. Results are written to the input QR.
      Returns:
      true if no error occurred
    • alignToBytes

      public static int alignToBytes(int lengthBits)
    • setVerbose

      public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration)
      Specified by:
      setVerbose in interface VerbosePrint