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: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EXPECTED_CORNER_BITS = []int{
		0xee0,
		0x1dc,
		0x83b,
		0x707,
	}
)

Functions

This section is empty.

Types

type AztecDetectorResult

type AztecDetectorResult struct {
	*common.DetectorResult
	// contains filtered or unexported fields
}

AztecDetectorResult Extends {@link DetectorResult} with more information specific to the Aztec format, like the number of layers and whether it's compact.

func NewAztecDetectorResult

func NewAztecDetectorResult(bits *gozxing.BitMatrix, points []gozxing.ResultPoint, compact bool, nbDatablocks, nbLayers int) *AztecDetectorResult

func (*AztecDetectorResult) GetNbDatablocks

func (d *AztecDetectorResult) GetNbDatablocks() int

func (*AztecDetectorResult) GetNbLayers

func (d *AztecDetectorResult) GetNbLayers() int

func (*AztecDetectorResult) IsCompact

func (d *AztecDetectorResult) IsCompact() bool

type Detector

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

Detector : Encapsulates logic that can detect an Aztec Code in an image, even if the Aztec Code is rotated or skewed, or partially obscured.

func NewDetector

func NewDetector(image *gozxing.BitMatrix) *Detector

func (*Detector) Detect

func (this *Detector) Detect(isMirror bool) (*AztecDetectorResult, error)

Detect Detects an Aztec Code in an image.

@param isMirror if true, image is a mirror-image of original @return {@link AztecDetectorResult} encapsulating results of detecting an Aztec Code @throws NotFoundException if no Aztec Code can be found

func (*Detector) DetectNoMirror

func (this *Detector) DetectNoMirror() (*AztecDetectorResult, error)

type Point

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

func (Point) String

func (p Point) String() string

Jump to

Keyboard shortcuts

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