Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
func Format(dots detect.QRCode) (MaskID, ErrorCorrectionLevel, error)
Format returns the QR-code "format", i.e. the mask ID used for the data dots and the error correction level. It uses both occurrences of the format and its error correction code, and returns the more likely value among all the encoded values. It fails when the format cannot be clearly recovered from the error correction codes.
func ReadBits ¶
ReadBits extracts the contents bits from the QR-code, excluding markers and all special dots, applying the given mask, and putting everything in the right order. See https://www.thonky.com/qr-code-tutorial/module-placement-matrix#step-6-place-the-data-bits for a visual explanation.
Types ¶
type ErrorCorrectionLevel ¶
type ErrorCorrectionLevel uint8
const ( ErrorCorrectionLevelMedium ErrorCorrectionLevel = iota ErrorCorrectionLevelLow ErrorCorrectionLevelHigh ErrorCorrectionLevelQuartile )
Click to show internal directories.
Click to hide internal directories.