detector

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FinderPatternFinder_CENTER_QUORUM = 2
	FinderPatternFinder_MIN_SKIP      = 3
	FinderPatternFinder_MAX_MODULES   = 97
)

Variables

This section is empty.

Functions

func AlignmentPatternFinder_centerFromEnd

func AlignmentPatternFinder_centerFromEnd(stateCount []int, end int) float64

func Detector_createTransform

func Detector_createTransform(topLeft, topRight, bottomLeft gozxing.ResultPoint, alignmentPattern *AlignmentPattern, dimension int) *common.PerspectiveTransform

func Detector_sampleGrid

func Detector_sampleGrid(image *gozxing.BitMatrix, transform *common.PerspectiveTransform, dimension int) (*gozxing.BitMatrix, error)

func FinderPatternFinder_ClearCounts

func FinderPatternFinder_ClearCounts(counts []int)

func FinderPatternFinder_ShiftCounts2

func FinderPatternFinder_ShiftCounts2(stateCount []int)

func FinderPatternFinder_centerFromEnd

func FinderPatternFinder_centerFromEnd(stateCount []int, end int) float64

func FinderPatternFinder_doClearCounts

func FinderPatternFinder_doClearCounts(counts []int)

func FinderPatternFinder_doShiftCounts2

func FinderPatternFinder_doShiftCounts2(stateCount []int)

func FinderPatternFinder_foundPatternCross

func FinderPatternFinder_foundPatternCross(stateCount []int) bool

func FinderPatternFinder_foundPatternDiagonal

func FinderPatternFinder_foundPatternDiagonal(stateCount []int) bool

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

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

func NewDetector

func NewDetector(image *gozxing.BitMatrix) *Detector

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) GetImage

func (this *Detector) GetImage() *gozxing.BitMatrix

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL