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
Modifier and TypeFieldDescriptionboolean
If true to it won't check the value of padding bytes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
alignToBytes
(int lengthBits) boolean
Reconstruct the data while applying error correction.boolean
decodeMessage
(QrCode qr) Decodes the message encoded in the corrects bits inside the QR.void
setVerbose
(@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:
setVerbose
in interfaceVerbosePrint
-