decoder

package
v0.0.0-...-9ba40a7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableUPPER = Table(iota)
	TableLOWER
	TableMIXED
	TableDIGIT
	TablePUNCT
	TableBINARY
)

Variables

View Source
var (
	UPPER_TABLE = []string{
		"CTRL_PS", " ", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
		"Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "CTRL_LL", "CTRL_ML", "CTRL_DL", "CTRL_BS",
	}

	LOWER_TABLE = []string{
		"CTRL_PS", " ", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p",
		"q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "CTRL_US", "CTRL_ML", "CTRL_DL", "CTRL_BS",
	}

	MIXED_TABLE = []string{
		"CTRL_PS", " ", "\001", "\002", "\003", "\004", "\005", "\006", "\007", "\b", "\t", "\n",
		"\013", "\f", "\r", "\033", "\034", "\035", "\036", "\037", "@", "\\", "^", "_",
		"`", "|", "~", "\177", "CTRL_LL", "CTRL_UL", "CTRL_PL", "CTRL_BS",
	}

	PUNCT_TABLE = []string{
		"FLG(n)", "\r", "\r\n", ". ", ", ", ": ", "!", "\"", "#", "$", "%", "&", "'", "(", ")",
		"*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "?", "[", "]", "{", "}", "CTRL_UL",
	}

	DIGIT_TABLE = []string{
		"CTRL_PS", " ", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ",", ".", "CTRL_UL", "CTRL_US",
	}

	DEFAULT_ENCODING encoding.Encoding = charmap.ISO8859_1
)

Functions

This section is empty.

Types

type Decoder

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

Detector The main class which implements Aztec Code decoding -- as opposed to locating and extracting the Aztec Code from an image.

func NewDecoder

func NewDecoder() *Decoder

func (*Decoder) Decode

func (this *Decoder) Decode(detectorResult *detector.AztecDetectorResult) (*common.DecoderResult, error)

func (*Decoder) HighLevelDecode

func (this *Decoder) HighLevelDecode(correctedBits []bool) (string, error)

HighLevelDecode This method is used for testing the high-level encoder

type Table

type Table int

Jump to

Keyboard shortcuts

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