detector

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WhiteRectangleDetector

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

WhiteRectangleDetector Detects a candidate barcode-like rectangular region within an image. It starts around the center of the image, increases the size of the candidate region until it finds a white rectangular region. By keeping track of the last black points it encountered, it determines the corners of the barcode.

func NewWhiteRectangleDetector

func NewWhiteRectangleDetector(image *gozxing.BitMatrix, initSize, x, y int) (*WhiteRectangleDetector, error)

NewWhiteRectangleDetector new WhiteRectangleDetector @param image barcode image to find a rectangle in @param initSize initial size of search area around center @param x x position of search center @param y y position of search center @throws NotFoundException if image is too small to accommodate {@code initSize}

func NewWhiteRectangleDetectorFromImage

func NewWhiteRectangleDetectorFromImage(image *gozxing.BitMatrix) (*WhiteRectangleDetector, error)

func (*WhiteRectangleDetector) Detect

func (this *WhiteRectangleDetector) Detect() ([]gozxing.ResultPoint, error)

Detect Detects a candidate barcode-like rectangular region within an image. It starts around the center of the image, increases the size of the candidate region until it finds a white rectangular region.

@return {@link ResultPoint}[] describing the corners of the rectangular

region. The first and last points are opposed on the diagonal, as
are the second and third. The first point will be the topmost
point and the last, the bottommost. The second point will be
leftmost and the third, the rightmost

@throws NotFoundException if no Data Matrix Code can be found

Jump to

Keyboard shortcuts

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