Documentation ¶
Index ¶
- Constants
- Variables
- func GridSampler_SetGridSampler(newGridSampler GridSampler)
- func GridSampler_checkAndNudgePoints(image *gozxing.BitMatrix, points []float64) error
- func StringUtils_guessEncoding(bytes []byte, hints map[gozxing.DecodeHintType]interface{}) string
- type BitSource
- type CharacterSetECI
- type 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) 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_SHIFT_JIS = "Shift_JIS" //"SJIS" StringUtils_GB2312 = "GB2312" StringUtils_EUC_JP = "EUC-JP" // "EUC_JP" StringUtils_UTF8 = "UTF-8" // UTF8 StringUtils_ISO88591 = "ISO-8859-1" // ISO8859_1 StringUtils_PLATFORM_DEFAULT_ENCODING = StringUtils_UTF8 )
Variables ¶
View Source
var ( CharacterSetECI_Cp437 = newCharsetECI([]int{0, 2}, "Cp437") CharacterSetECI_ISO8859_1 = newCharsetECI([]int{1, 3}, "ISO-8859-1", "ISO8859_1") CharacterSetECI_ISO8859_2 = newCharsetECI([]int{4}, "ISO-8859-2", "ISO8859_2") CharacterSetECI_ISO8859_3 = newCharsetECI([]int{5}, "ISO-8859-3", "ISO8859_3") CharacterSetECI_ISO8859_4 = newCharsetECI([]int{6}, "ISO-8859-4", "ISO8859_4") CharacterSetECI_ISO8859_5 = newCharsetECI([]int{7}, "ISO-8859-5", "ISO8859_5") CharacterSetECI_ISO8859_6 = newCharsetECI([]int{8}, "ISO-8859-6", "ISO8859_6") CharacterSetECI_ISO8859_7 = newCharsetECI([]int{9}, "ISO-8859-7", "ISO8859_7") CharacterSetECI_ISO8859_8 = newCharsetECI([]int{10}, "ISO-8859-8", "ISO8859_8") CharacterSetECI_ISO8859_9 = newCharsetECI([]int{11}, "ISO-8859-9", "ISO8859_9") CharacterSetECI_ISO8859_10 = newCharsetECI([]int{12}, "ISO-8859-10", "ISO8859_10") //CharacterSetECI_ISO8859_11 = newCharsetECI([]int{13}, "TIS-620", "ISO-8859-11", "ISO8859_11") // golang does not support CharacterSetECI_ISO8859_13 = newCharsetECI([]int{15}, "ISO-8859-13", "ISO8859_13") CharacterSetECI_ISO8859_14 = newCharsetECI([]int{16}, "ISO-8859-14", "ISO8859_14") CharacterSetECI_ISO8859_15 = newCharsetECI([]int{17}, "ISO-8859-15", "ISO8859_15") CharacterSetECI_ISO8859_16 = newCharsetECI([]int{18}, "ISO-8859-16", "ISO8859_16") CharacterSetECI_SJIS = newCharsetECI([]int{20}, "Shift_JIS", "SJIS") CharacterSetECI_Cp1250 = newCharsetECI([]int{21}, "windows-1250", "Cp1250") CharacterSetECI_Cp1251 = newCharsetECI([]int{22}, "windows-1251", "Cp1251") CharacterSetECI_Cp1252 = newCharsetECI([]int{23}, "windows-1252", "Cp1252") CharacterSetECI_Cp1256 = newCharsetECI([]int{24}, "windows-1256", "Cp1256") CharacterSetECI_UnicodeBigUnmarked = newCharsetECI([]int{25}, "UTF-16BE", "UnicodeBig", "UnicodeBigUnmarked") CharacterSetECI_UTF8 = newCharsetECI([]int{26}, "UTF-8", "UTF8") CharacterSetECI_ASCII = newCharsetECI([]int{27, 170}, "ASCII", "US-ASCII") CharacterSetECI_Big5 = newCharsetECI([]int{28}, "Big5") CharacterSetECI_GB18030 = newCharsetECI([]int{29}, "GB18030", "GB2312", "EUC_CN", "GBK") // BG18030 is upward compatible with others CharacterSetECI_EUC_KR = newCharsetECI([]int{30}, "EUC-KR", "EUC_KR") )
Functions ¶
func GridSampler_SetGridSampler ¶
func GridSampler_SetGridSampler(newGridSampler GridSampler)
func StringUtils_guessEncoding ¶
func StringUtils_guessEncoding(bytes []byte, hints map[gozxing.DecodeHintType]interface{}) string
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 GetCharacterSetECIByName ¶
func GetCharacterSetECIByName(name string) *CharacterSetECI
func GetCharacterSetECIByValue ¶
func GetCharacterSetECIByValue(value int) (*CharacterSetECI, error)
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) 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.