Documentation ¶
Index ¶
- Constants
- Variables
- func GridSampler_SetGridSampler(newGridSampler GridSampler)
- func GridSampler_checkAndNudgePoints(image *gozxing.BitMatrix, points []float64) error
- func StringUtils_guessCharset(bytes []byte, hints map[gozxing.DecodeHintType]interface{}) (encoding.Encoding, error)
- func StringUtils_guessEncoding(bytes []byte, hints map[gozxing.DecodeHintType]interface{}) (string, error)
- type BitSource
- type CharacterSetECI
- type DecoderResult
- func NewDecoderResult(rawBytes []byte, text string, byteSegments [][]byte, ecLevel string) *DecoderResult
- func NewDecoderResultWithParams(rawBytes []byte, text string, byteSegments [][]byte, ecLevel string, ...) *DecoderResult
- func NewDecoderResultWithSA(rawBytes []byte, text string, byteSegments [][]byte, ecLevel string, ...) *DecoderResult
- func NewDecoderResultWithSymbologyModifier(rawBytes []byte, text string, byteSegments [][]byte, ecLevel string, ...) *DecoderResult
- func (this *DecoderResult) GetByteSegments() [][]byte
- func (this *DecoderResult) GetECLevel() string
- func (this *DecoderResult) GetErasures() int
- func (this *DecoderResult) GetErrorsCorrected() int
- func (this *DecoderResult) GetNumBits() int
- func (this *DecoderResult) GetOther() interface{}
- func (this *DecoderResult) GetRawBytes() []byte
- func (this *DecoderResult) GetStructuredAppendParity() int
- func (this *DecoderResult) GetStructuredAppendSequenceNumber() int
- func (this *DecoderResult) GetSymbologyModifier() int
- func (this *DecoderResult) GetText() string
- func (this *DecoderResult) HasStructuredAppend() bool
- func (this *DecoderResult) SetErasures(erasures int)
- func (this *DecoderResult) SetErrorsCorrected(errorsCorrected int)
- func (this *DecoderResult) SetNumBits(numBits int)
- func (this *DecoderResult) SetOther(other interface{})
- type DefaultGridSampler
- type DetectorResult
- type GridSampler
- type PerspectiveTransform
- func PerspectiveTransform_QuadrilateralToQuadrilateral(x0, y0, x1, y1, x2, y2, x3, y3, x0p, y0p, x1p, y1p, x2p, y2p, x3p, y3p float64) *PerspectiveTransform
- func PerspectiveTransform_QuadrilateralToSquare(x0, y0, x1, y1, x2, y2, x3, y3 float64) *PerspectiveTransform
- func PerspectiveTransform_SquareToQuadrilateral(x0, y0, x1, y1, x2, y2, x3, y3 float64) *PerspectiveTransform
Constants ¶
View Source
const ( StringUtils_ASSUME_SHIFT_JIS = false // Retained for ABI compatibility with earlier versions StringUtils_SHIFT_JIS = "SJIS" StringUtils_GB2312 = "GB2312" )
Variables ¶
View Source
var ( CharacterSetECI_Cp437 = newCharsetECI([]int{0, 2}, charmap.CodePage437, "Cp437") CharacterSetECI_ISO8859_1 = newCharsetECI([]int{1, 3}, charmap.ISO8859_1, "ISO-8859-1", "ISO8859_1") CharacterSetECI_ISO8859_2 = newCharsetECI([]int{4}, charmap.ISO8859_2, "ISO-8859-2", "ISO8859_2") CharacterSetECI_ISO8859_3 = newCharsetECI([]int{5}, charmap.ISO8859_3, "ISO-8859-3", "ISO8859_3") CharacterSetECI_ISO8859_4 = newCharsetECI([]int{6}, charmap.ISO8859_4, "ISO-8859-4", "ISO8859_4") CharacterSetECI_ISO8859_5 = newCharsetECI([]int{7}, charmap.ISO8859_5, "ISO-8859-5", "ISO8859_5") //CharacterSetECI_ISO8859_6 = newCharsetECI([]int{8}, charmap.ISO8859_6, "ISO-8859-6", "ISO8859_6") CharacterSetECI_ISO8859_7 = newCharsetECI([]int{9}, charmap.ISO8859_7, "ISO-8859-7", "ISO8859_7") //CharacterSetECI_ISO8859_8 = newCharsetECI([]int{10}, charmap.ISO8859_8, "ISO-8859-8", "ISO8859_8") CharacterSetECI_ISO8859_9 = newCharsetECI([]int{11}, charmap.ISO8859_9, "ISO-8859-9", "ISO8859_9") CharacterSetECI_ISO8859_13 = newCharsetECI([]int{15}, charmap.ISO8859_13, "ISO-8859-13", "ISO8859_13") //CharacterSetECI_ISO8859_14 = newCharsetECI([]int{16}, charmap.ISO8859_14, "ISO-8859-14", "ISO8859_14") CharacterSetECI_ISO8859_15 = newCharsetECI([]int{17}, charmap.ISO8859_15, "ISO-8859-15", "ISO8859_15") CharacterSetECI_ISO8859_16 = newCharsetECI([]int{18}, charmap.ISO8859_16, "ISO-8859-16", "ISO8859_16") CharacterSetECI_SJIS = newCharsetECI([]int{20}, japanese.ShiftJIS, "Shift_JIS", "SJIS") CharacterSetECI_Cp1250 = newCharsetECI([]int{21}, charmap.Windows1250, "windows-1250", "Cp1250") CharacterSetECI_Cp1251 = newCharsetECI([]int{22}, charmap.Windows1251, "windows-1251", "Cp1251") CharacterSetECI_Cp1252 = newCharsetECI([]int{23}, charmap.Windows1252, "windows-1252", "Cp1252") CharacterSetECI_Cp1256 = newCharsetECI([]int{24}, charmap.Windows1256, "windows-1256", "Cp1256") CharacterSetECI_UnicodeBigUnmarked = newCharsetECI([]int{25}, utf16beEnc, "UTF-16BE", "UnicodeBig", "UnicodeBigUnmarked") CharacterSetECI_UTF8 = newCharsetECI([]int{26}, unicode.UTF8, "UTF-8", "UTF8") CharacterSetECI_ASCII = newCharsetECI([]int{27, 170}, asciiEnc, "ASCII", "US-ASCII") CharacterSetECI_Big5 = newCharsetECI([]int{28}, traditionalchinese.Big5, "Big5") CharacterSetECI_GB18030 = newCharsetECI([]int{29}, simplifiedchinese.GB18030, "GB18030", "GB2312", "EUC_CN", "GBK") // BG18030 is upward compatible with others CharacterSetECI_EUC_KR = newCharsetECI([]int{30}, korean.EUCKR, "EUC-KR", "EUC_KR") )
View Source
var ( StringUtils_PLATFORM_DEFAULT_ENCODING = unicode.UTF8 StringUtils_SHIFT_JIS_CHARSET = japanese.ShiftJIS // "SJIS" StringUtils_GB2312_CHARSET = simplifiedchinese.GB18030 // "GB2312" StringUtils_EUC_JP = japanese.EUCJP // "EUC_JP" )
Functions ¶
func GridSampler_SetGridSampler ¶
func GridSampler_SetGridSampler(newGridSampler GridSampler)
func StringUtils_guessEncoding ¶
func StringUtils_guessEncoding(bytes []byte, hints map[gozxing.DecodeHintType]interface{}) (string, error)
Types ¶
type BitSource ¶
type BitSource struct {
// contains filtered or unexported fields
}
func NewBitSource ¶
func (*BitSource) GetBitOffset ¶
func (*BitSource) GetByteOffset ¶
type CharacterSetECI ¶
type CharacterSetECI struct {
// contains filtered or unexported fields
}
func GetCharacterSetECI ¶
func GetCharacterSetECI(charset encoding.Encoding) (*CharacterSetECI, bool)
func GetCharacterSetECIByName ¶
func GetCharacterSetECIByName(name string) (*CharacterSetECI, bool)
func GetCharacterSetECIByValue ¶
func GetCharacterSetECIByValue(value int) (*CharacterSetECI, error)
func (*CharacterSetECI) GetCharset ¶
func (this *CharacterSetECI) GetCharset() encoding.Encoding
func (*CharacterSetECI) GetValue ¶
func (this *CharacterSetECI) GetValue() int
func (*CharacterSetECI) Name ¶
func (this *CharacterSetECI) Name() string
type DecoderResult ¶
type DecoderResult struct {
// contains filtered or unexported fields
}
func NewDecoderResult ¶
func NewDecoderResult(rawBytes []byte, text string, byteSegments [][]byte, ecLevel string) *DecoderResult
func NewDecoderResultWithSA ¶
func (*DecoderResult) GetByteSegments ¶
func (this *DecoderResult) GetByteSegments() [][]byte
func (*DecoderResult) GetECLevel ¶
func (this *DecoderResult) GetECLevel() string
func (*DecoderResult) GetErasures ¶
func (this *DecoderResult) GetErasures() int
func (*DecoderResult) GetErrorsCorrected ¶
func (this *DecoderResult) GetErrorsCorrected() int
func (*DecoderResult) GetNumBits ¶
func (this *DecoderResult) GetNumBits() int
func (*DecoderResult) GetOther ¶
func (this *DecoderResult) GetOther() interface{}
func (*DecoderResult) GetRawBytes ¶
func (this *DecoderResult) GetRawBytes() []byte
func (*DecoderResult) GetStructuredAppendParity ¶
func (this *DecoderResult) GetStructuredAppendParity() int
func (*DecoderResult) GetStructuredAppendSequenceNumber ¶
func (this *DecoderResult) GetStructuredAppendSequenceNumber() int
func (*DecoderResult) GetSymbologyModifier ¶
func (this *DecoderResult) GetSymbologyModifier() int
func (*DecoderResult) GetText ¶
func (this *DecoderResult) GetText() string
func (*DecoderResult) HasStructuredAppend ¶
func (this *DecoderResult) HasStructuredAppend() bool
func (*DecoderResult) SetErasures ¶
func (this *DecoderResult) SetErasures(erasures int)
func (*DecoderResult) SetErrorsCorrected ¶
func (this *DecoderResult) SetErrorsCorrected(errorsCorrected int)
func (*DecoderResult) SetNumBits ¶
func (this *DecoderResult) SetNumBits(numBits int)
func (*DecoderResult) SetOther ¶
func (this *DecoderResult) SetOther(other interface{})
type DefaultGridSampler ¶
type DefaultGridSampler struct{}
func (DefaultGridSampler) SampleGrid ¶
func (DefaultGridSampler) SampleGridWithTransform ¶
func (s DefaultGridSampler) SampleGridWithTransform(image *gozxing.BitMatrix, dimensionX, dimensionY int, transform *PerspectiveTransform) (*gozxing.BitMatrix, error)
type DetectorResult ¶
type DetectorResult struct {
// contains filtered or unexported fields
}
func NewDetectorResult ¶
func NewDetectorResult(bits *gozxing.BitMatrix, points []gozxing.ResultPoint) *DetectorResult
func (*DetectorResult) GetBits ¶
func (d *DetectorResult) GetBits() *gozxing.BitMatrix
func (*DetectorResult) GetPoints ¶
func (d *DetectorResult) GetPoints() []gozxing.ResultPoint
type GridSampler ¶
type GridSampler interface { SampleGrid(image *gozxing.BitMatrix, dimensionX, dimensionY int, p1ToX, p1ToY, p2ToX, p2ToY, p3ToX, p3ToY, p4ToX, p4ToY float64, p1FromX, p1FromY, p2FromX, p2FromY, p3FromX, p3FromY, p4FromX, p4FromY float64) (*gozxing.BitMatrix, error) SampleGridWithTransform(image *gozxing.BitMatrix, dimensionX, dimensionY int, transform *PerspectiveTransform) (*gozxing.BitMatrix, error) }
func GridSampler_GetInstance ¶
func GridSampler_GetInstance() GridSampler
func NewDefaultGridSampler ¶
func NewDefaultGridSampler() GridSampler
type PerspectiveTransform ¶
type PerspectiveTransform struct {
// contains filtered or unexported fields
}
func PerspectiveTransform_QuadrilateralToQuadrilateral ¶
func PerspectiveTransform_QuadrilateralToQuadrilateral(x0, y0, x1, y1, x2, y2, x3, y3, x0p, y0p, x1p, y1p, x2p, y2p, x3p, y3p float64) *PerspectiveTransform
func PerspectiveTransform_QuadrilateralToSquare ¶
func PerspectiveTransform_QuadrilateralToSquare(x0, y0, x1, y1, x2, y2, x3, y3 float64) *PerspectiveTransform
func PerspectiveTransform_SquareToQuadrilateral ¶
func PerspectiveTransform_SquareToQuadrilateral(x0, y0, x1, y1, x2, y2, x3, y3 float64) *PerspectiveTransform
func (*PerspectiveTransform) TransformPoints ¶
func (p *PerspectiveTransform) TransformPoints(points []float64)
func (*PerspectiveTransform) TransformPointsXY ¶
func (p *PerspectiveTransform) TransformPointsXY(xValues, yValues []float64)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.