Package boofcv.alg.fiducial.qrcode
Class QrCodeDecoderBits
java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeDecoderBits
- All Implemented Interfaces:
VerbosePrint
After the data bits have been read this will decode them and extract a meaningful message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIf true to it won't check the value of padding bytes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intalignToBytes(int lengthBits) booleanReconstruct the data while applying error correction.booleandecodeMessage(QrCode qr) Decodes the message encoded in the corrects bits inside the QR.voidsetVerbose(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
ignorePaddingBytes
public boolean ignorePaddingBytesIf true to it won't check the value of padding bytes. Run into an off by one error
-
-
Constructor Details
-
QrCodeDecoderBits
- Parameters:
forceEncoding- If null then the default byte encoding is used. If not null then the specified encoding is used.
-
-
Method Details
-
applyErrorCorrection
Reconstruct the data while applying error correction. -
decodeMessage
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:
setVerbosein interfaceVerbosePrint
-