Documentation ¶
Index ¶
- Constants
- func AlignmentPatternFinder_centerFromEnd(stateCount []int, end int) float64
- func Detector_createTransform(topLeft, topRight, bottomLeft gozxing.ResultPoint, ...) *common.PerspectiveTransform
- func Detector_sampleGrid(image *gozxing.BitMatrix, transform *common.PerspectiveTransform, ...) (*gozxing.BitMatrix, error)
- func FinderPatternFinder_ClearCounts(counts []int)
- func FinderPatternFinder_ShiftCounts2(stateCount []int)
- func FinderPatternFinder_centerFromEnd(stateCount []int, end int) float64
- func FinderPatternFinder_doClearCounts(counts []int)
- func FinderPatternFinder_doShiftCounts2(stateCount []int)
- func FinderPatternFinder_foundPatternCross(stateCount []int) bool
- func FinderPatternFinder_foundPatternDiagonal(stateCount []int) bool
- type AlignmentPattern
- type AlignmentPatternFinder
- type Detector
- func (this *Detector) Detect(hints map[gozxing.DecodeHintType]interface{}) (*common.DetectorResult, error)
- func (this *Detector) DetectWithoutHints() (*common.DetectorResult, error)
- func (this *Detector) GetImage() *gozxing.BitMatrix
- func (this *Detector) GetResultPointCallback() gozxing.ResultPointCallback
- func (this *Detector) ProcessFinderPatternInfo(info *FinderPatternInfo) (*common.DetectorResult, error)
- type FinderPattern
- type FinderPatternFinder
- func (f *FinderPatternFinder) CrossCheckHorizontal(startJ, centerI, maxCount, originalStateCountTotal int) float64
- func (f *FinderPatternFinder) CrossCheckVertical(startI, centerJ, maxCount, originalStateCountTotal int) float64
- func (f *FinderPatternFinder) Find(hints map[gozxing.DecodeHintType]interface{}) (*FinderPatternInfo, gozxing.NotFoundException)
- func (f *FinderPatternFinder) FindRowSkip() int
- func (f *FinderPatternFinder) GetCrossCheckStateCount() []int
- func (f *FinderPatternFinder) GetImage() *gozxing.BitMatrix
- func (f *FinderPatternFinder) GetPossibleCenters() []*FinderPattern
- func (f *FinderPatternFinder) HandlePossibleCenter(stateCount []int, i, j int) bool
- func (f *FinderPatternFinder) HandlePossibleCenterWithPureBarcode(stateCount []int, i, j int, pureBarcode bool) bool
- func (f *FinderPatternFinder) HaveMultiplyConfirmedCenters() bool
- func (f *FinderPatternFinder) SelectBestPatterns() ([]*FinderPattern, gozxing.NotFoundException)
- type FinderPatternInfo
Constants ¶
View Source
const ( FinderPatternFinder_CENTER_QUORUM = 2 FinderPatternFinder_MIN_SKIP = 3 FinderPatternFinder_MAX_MODULES = 97 )
Variables ¶
This section is empty.
Functions ¶
func Detector_createTransform ¶
func Detector_createTransform(topLeft, topRight, bottomLeft gozxing.ResultPoint, alignmentPattern *AlignmentPattern, dimension int) *common.PerspectiveTransform
func Detector_sampleGrid ¶
func FinderPatternFinder_ClearCounts ¶
func FinderPatternFinder_ClearCounts(counts []int)
func FinderPatternFinder_ShiftCounts2 ¶
func FinderPatternFinder_ShiftCounts2(stateCount []int)
func FinderPatternFinder_doClearCounts ¶
func FinderPatternFinder_doClearCounts(counts []int)
func FinderPatternFinder_doShiftCounts2 ¶
func FinderPatternFinder_doShiftCounts2(stateCount []int)
Types ¶
type AlignmentPattern ¶
type AlignmentPattern struct { gozxing.ResultPoint // contains filtered or unexported fields }
func NewAlignmentPattern ¶
func NewAlignmentPattern(posX, posY, estimatedModuleSize float64) *AlignmentPattern
func (*AlignmentPattern) AboutEquals ¶
func (a *AlignmentPattern) AboutEquals(moduleSize, i, j float64) bool
func (*AlignmentPattern) CombineEstimate ¶
func (a *AlignmentPattern) CombineEstimate(i, j, newModuleSize float64) *AlignmentPattern
type AlignmentPatternFinder ¶
type AlignmentPatternFinder struct {
// contains filtered or unexported fields
}
func NewAlignmentPatternFinder ¶
func NewAlignmentPatternFinder(image *gozxing.BitMatrix, startX, startY, width, height int, moduleSize float64, resultPointCallback gozxing.ResultPointCallback) *AlignmentPatternFinder
func (*AlignmentPatternFinder) Find ¶
func (this *AlignmentPatternFinder) Find() (*AlignmentPattern, gozxing.NotFoundException)
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
func NewDetector ¶
func (*Detector) Detect ¶
func (this *Detector) Detect(hints map[gozxing.DecodeHintType]interface{}) (*common.DetectorResult, error)
func (*Detector) DetectWithoutHints ¶
func (this *Detector) DetectWithoutHints() (*common.DetectorResult, error)
func (*Detector) GetResultPointCallback ¶
func (this *Detector) GetResultPointCallback() gozxing.ResultPointCallback
func (*Detector) ProcessFinderPatternInfo ¶
func (this *Detector) ProcessFinderPatternInfo(info *FinderPatternInfo) (*common.DetectorResult, error)
type FinderPattern ¶
type FinderPattern struct { gozxing.ResultPoint // contains filtered or unexported fields }
func NewFinderPattern ¶
func NewFinderPattern(posX, posY, estimatedModuleSize float64, count int) *FinderPattern
func NewFinderPattern1 ¶
func NewFinderPattern1(posX, posY, estimatedModuleSize float64) *FinderPattern
func (*FinderPattern) AboutEquals ¶
func (f *FinderPattern) AboutEquals(moduleSize, i, j float64) bool
func (*FinderPattern) CombineEstimate ¶
func (f *FinderPattern) CombineEstimate(i, j, newModuleSize float64) *FinderPattern
func (*FinderPattern) GetCount ¶
func (f *FinderPattern) GetCount() int
func (*FinderPattern) GetEstimatedModuleSize ¶
func (f *FinderPattern) GetEstimatedModuleSize() float64
type FinderPatternFinder ¶
type FinderPatternFinder struct {
// contains filtered or unexported fields
}
func NewFinderPatternFinder ¶
func NewFinderPatternFinder(image *gozxing.BitMatrix, resultPointCallback gozxing.ResultPointCallback) *FinderPatternFinder
func (*FinderPatternFinder) CrossCheckHorizontal ¶
func (f *FinderPatternFinder) CrossCheckHorizontal(startJ, centerI, maxCount, originalStateCountTotal int) float64
func (*FinderPatternFinder) CrossCheckVertical ¶
func (f *FinderPatternFinder) CrossCheckVertical(startI, centerJ, maxCount, originalStateCountTotal int) float64
func (*FinderPatternFinder) Find ¶
func (f *FinderPatternFinder) Find(hints map[gozxing.DecodeHintType]interface{}) (*FinderPatternInfo, gozxing.NotFoundException)
func (*FinderPatternFinder) FindRowSkip ¶
func (f *FinderPatternFinder) FindRowSkip() int
func (*FinderPatternFinder) GetCrossCheckStateCount ¶
func (f *FinderPatternFinder) GetCrossCheckStateCount() []int
func (*FinderPatternFinder) GetImage ¶
func (f *FinderPatternFinder) GetImage() *gozxing.BitMatrix
func (*FinderPatternFinder) GetPossibleCenters ¶
func (f *FinderPatternFinder) GetPossibleCenters() []*FinderPattern
func (*FinderPatternFinder) HandlePossibleCenter ¶
func (f *FinderPatternFinder) HandlePossibleCenter(stateCount []int, i, j int) bool
func (*FinderPatternFinder) HandlePossibleCenterWithPureBarcode ¶
func (f *FinderPatternFinder) HandlePossibleCenterWithPureBarcode(stateCount []int, i, j int, pureBarcode bool) bool
func (*FinderPatternFinder) HaveMultiplyConfirmedCenters ¶
func (f *FinderPatternFinder) HaveMultiplyConfirmedCenters() bool
func (*FinderPatternFinder) SelectBestPatterns ¶
func (f *FinderPatternFinder) SelectBestPatterns() ([]*FinderPattern, gozxing.NotFoundException)
SelectBestPatterns return the 3 best {@link FinderPattern}s from our list of candidates. The "best" are those have similar module size and form a shape closer to a isosceles right triangle. @throws NotFoundException if 3 such finder patterns do not exist
type FinderPatternInfo ¶
type FinderPatternInfo struct {
// contains filtered or unexported fields
}
func NewFinderPatternInfo ¶
func NewFinderPatternInfo(bottomLeft, topLeft, topRight *FinderPattern) *FinderPatternInfo
func (*FinderPatternInfo) GetBottomLeft ¶
func (f *FinderPatternInfo) GetBottomLeft() *FinderPattern
func (*FinderPatternInfo) GetTopLeft ¶
func (f *FinderPatternInfo) GetTopLeft() *FinderPattern
func (*FinderPatternInfo) GetTopRight ¶
func (f *FinderPatternInfo) GetTopRight() *FinderPattern
Click to show internal directories.
Click to hide internal directories.