Versions in this module Expand all Collapse all v0 v0.1.0 Apr 16, 2022 Changes in this version + var AlignmentPatternCenter = [][]int + var Versions = []QRcodeVersion + func Bit2Byte(bits []bool) byte + func Bit2Int(bits []bool) int + func Bits2Bytes(dataCode []bool, version int) ([]byte, error) + func Bool2Byte(dataCode []bool) []byte + func Byte2Bool(bl []byte) []bool + func Copy(src interface{}) interface + func ExportGroups(size image.Rectangle, hollow []*PosGroup, filename string) error + func GetData(unmaskMatrix, dataArea *Matrix) []bool + func GetDataEncoder(version int) (*dataEncoder, error) + func Hollow(group *PosGroup) bool + func IsPositionDetectionPattern(solidGroup, hollowGroup *PosGroup) bool + func IsVertical(kf, kl *K) (offset float64) + func Line(start, end *Pos, matrix *Matrix) (line []bool) + func LineWidth(positionDetectionPatterns [][]*PosGroup) float64 + func MaskFunc(code int) func(x, y int) bool + func ParseBlock(m *Matrix, data []bool) ([]bool, error) + func QRReconstruct(data, ecc []byte) ([]byte, error) + func Radian(k *K) + func Rectangle(group []Pos) (minX, maxX, minY, maxY int) + func SplitGroup(poss *[][]bool, centerX, centerY int, around *[]Pos) + func StringBool(dataCode []bool) string + func StringByte(b []byte) string + type Block struct + NumBlocks int + NumCodewords int + NumDataCodewords int + type FormatInfo struct + ErrorCorrectionLevel int + Mask int + type K struct + FirstPosGroup *PosGroup + K float64 + LastPosGroup *PosGroup + type Matrix struct + Content string + Data []bool + OrgImage image.Image + OrgPoints [][]bool + OrgSize image.Rectangle + Points [][]bool + Size image.Rectangle + func Decode(fi io.Reader) (*Matrix, error) + func DecodeImg(img image.Image, batchPath string) (*Matrix, error) + func (mx *Matrix) AtOrgPoints(x, y int) bool + func (mx *Matrix) AtPoints(x, y int) bool + func (mx *Matrix) Binarization() uint8 + func (mx *Matrix) CenterList(line []bool, offset int) (li []int) + func (mx *Matrix) DataArea() *Matrix + func (mx *Matrix) FormatInfo() (*FormatInfo, error) + func (mx *Matrix) GetBin(poss []Pos) int + func (mx *Matrix) ReadImage(batchPath string) + func (mx *Matrix) SplitGroups() [][]Pos + func (mx *Matrix) Version() int + type Pos struct + X int + Y int + func CenterPoint(group []Pos) Pos + type PosGroup struct + Center Pos + Group []Pos + GroupMap map[Pos]bool + Hollow bool + Max Pos + Min Pos + func PossListToGroup(groups []*PosGroup) *PosGroup + func PossToGroup(group []Pos) *PosGroup + type PositionDetectionPatterns struct + Bottom *PosGroup + Right *PosGroup + TopLeft *PosGroup + func NewPositionDetectionPattern(PDPs [][]*PosGroup) (*PositionDetectionPatterns, error) + type QRcodeVersion struct + Block []Block + DataEncoderType dataEncoderType + Level RecoveryLevel + NumRemainderBits int + Version int + type RecoveryLevel int + const High + const Highest + const Low + const Medium