Versions in this module Expand all Collapse all v0 v0.1.0 Apr 9, 2022 Changes in this version + var ErrNoSymbolsFound = errors.New("no symbols found") + func Blocks(data QRData, level ECLevel, mask QRMask) ([][]byte, error) + func Correct(block []byte, blockInfo BlockInfo) ([]byte, error) + func CorrectWithErrorCount(block []byte, blockInfo BlockInfo) ([]byte, int, error) + func Data(input []byte, version uint32) ([]byte, error) + func Format(data QRData) (ECLevel, QRMask, error) + type BlockCoord uint32 + type BlockInfo struct + BlockCount byte + DataPer byte + EC_Cap byte + TotalPer byte + func GetBlockInfo(version uint32, level ECLevel) ([]BlockInfo, error) + type BlockSize uint32 + type BlockedMean struct + func NewBlockedMean(blockSize, blockMeanSize uint32) BlockedMean + func (b BlockedMean) Prepare(img image.Image) *image.Gray + type Chomp struct + func NewChomp(b []byte) *Chomp + func (ch *Chomp) Chomp(nBits uint8) (result byte, ok bool) + func (ch *Chomp) ChompUint16(nBits uint8) (uint16, bool) + type DefaultDecoder struct + func (DefaultDecoder) Decode(src image.Image) ([][]byte, error) + type Detector interface + Detect func(prepared *image.Gray) []QRLocation + type ECLevel int + const ECLevelHigh + const ECLevelLow + const ECLevelMedium + const ECLevelQuartile + type LineScan struct + func (s LineScan) Detect(prepared *image.Gray) []QRLocation + type Point struct + X float64 + Y float64 + func (p Point) Add(q Point) Point + func (p Point) Div(k float64) Point + func (p Point) Mul(k float64) Point + func (p Point) Sub(q Point) Point + type QRData struct + Data []byte + Side uint32 + Version uint32 + func (d QRData) Index(x, y uint32) byte + type QRDecoder struct + func (QRDecoder) Decode(qrData QRData) ([]byte, error) + type QRExtract struct + func (QRExtract) Extract(prepared *image.Gray, loc QRLocation) (QRData, error) + type QRExtractor interface + Extract func(*image.Gray, QRLocation) + type QRFinderPattern [7]uint + func (p *QRFinderPattern) EstimateModuleSize() float64 + func (p *QRFinderPattern) LooksLikeFinder() bool + func (p *QRFinderPattern) Slide() + type QRFinderPosition struct + LastModuleSize float64 + Location Point + ModuleSize float64 + type QRLocation struct + BottomLeft Point + ModuleSize float64 + TopLeft Point + TopRight Point + Version uint32 + type QRMask = func(QRData, uint32, uint32) byte