Versions in this module Expand all Collapse all v0 v0.0.5 Aug 30, 2021 v0.0.4 Aug 19, 2021 Changes in this version + const BLOCK_SIZE + const BLOCK_SIZE_MASK + const BLOCK_SIZE_POWER + const BarcodeFormat_AZTEC + const BarcodeFormat_CODABAR + const BarcodeFormat_CODE_128 + const BarcodeFormat_CODE_39 + const BarcodeFormat_CODE_93 + const BarcodeFormat_DATA_MATRIX + const BarcodeFormat_EAN_13 + const BarcodeFormat_EAN_8 + const BarcodeFormat_ITF + const BarcodeFormat_MAXICODE + const BarcodeFormat_PDF_417 + const BarcodeFormat_QR_CODE + const BarcodeFormat_RSS_14 + const BarcodeFormat_RSS_EXPANDED + const BarcodeFormat_UPC_A + const BarcodeFormat_UPC_E + const BarcodeFormat_UPC_EAN_EXTENSION + const EncodeHintType_AZTEC_LAYERS + const EncodeHintType_CHARACTER_SET + const EncodeHintType_DATA_MATRIX_SHAPE + const EncodeHintType_ERROR_CORRECTION + const EncodeHintType_FORCE_CODE_SET + const EncodeHintType_GS1_FORMAT + const EncodeHintType_MARGIN + const EncodeHintType_MAX_SIZE + const EncodeHintType_MIN_SIZE + const EncodeHintType_PDF417_COMPACT + const EncodeHintType_PDF417_COMPACTION + const EncodeHintType_PDF417_DIMENSIONS + const EncodeHintType_QR_MASK_PATTERN + const EncodeHintType_QR_VERSION + const LUMINANCE_BITS + const LUMINANCE_BUCKETS + const LUMINANCE_SHIFT + const MINIMUM_DIMENSION + const MIN_DYNAMIC_RANGE + const ResultMetadataType_BYTE_SEGMENTS + const ResultMetadataType_ERROR_CORRECTION_LEVEL + const ResultMetadataType_ISSUE_NUMBER + const ResultMetadataType_ORIENTATION + const ResultMetadataType_OTHER + const ResultMetadataType_PDF417_EXTRA_METADATA + const ResultMetadataType_POSSIBLE_COUNTRY + const ResultMetadataType_STRUCTURED_APPEND_PARITY + const ResultMetadataType_STRUCTURED_APPEND_SEQUENCE + const ResultMetadataType_SUGGESTED_PRICE + const ResultMetadataType_SYMBOLOGY_IDENTIFIER + const ResultMetadataType_UPC_EAN_EXTENSION + func LuminanceSourceString(this LuminanceSource) string + func ResultPoint_Distance(pattern1, pattern2 ResultPoint) float64 + type BarcodeFormat int + func (f BarcodeFormat) String() string + type BarcodeFormats []BarcodeFormat + func (barcodes BarcodeFormats) Contains(c BarcodeFormat) bool + type Binarizer interface + CreateBinarizer func(source LuminanceSource) Binarizer + GetBlackMatrix func() (*BitMatrix, error) + GetBlackRow func(y int, row *BitArray) (*BitArray, error) + GetHeight func() int + GetLuminanceSource func() LuminanceSource + GetWidth func() int + func NewGlobalHistgramBinarizer(source LuminanceSource) Binarizer + func NewHybridBinarizer(source LuminanceSource) Binarizer + type BinaryBitmap struct + func NewBinaryBitmap(binarizer Binarizer) (*BinaryBitmap, error) + func NewBinaryBitmapFromImage(img image.Image) (*BinaryBitmap, error) + func (this *BinaryBitmap) Crop(left, top, width, height int) (*BinaryBitmap, error) + func (this *BinaryBitmap) GetBlackMatrix() (*BitMatrix, error) + func (this *BinaryBitmap) GetBlackRow(y int, row *BitArray) (*BitArray, error) + func (this *BinaryBitmap) GetHeight() int + func (this *BinaryBitmap) GetWidth() int + func (this *BinaryBitmap) IsCropSupported() bool + func (this *BinaryBitmap) IsRotateSupported() bool + func (this *BinaryBitmap) RotateCounterClockwise() (*BinaryBitmap, error) + func (this *BinaryBitmap) RotateCounterClockwise45() (*BinaryBitmap, error) + func (this *BinaryBitmap) String() string + type BitArray struct + func NewBitArray(size int) *BitArray + func NewEmptyBitArray() *BitArray + func (b *BitArray) AppendBit(bit bool) + func (b *BitArray) AppendBitArray(other *BitArray) + func (b *BitArray) AppendBits(value int, numBits int) error + func (b *BitArray) Clear() + func (b *BitArray) Flip(i int) + func (b *BitArray) Get(i int) bool + func (b *BitArray) GetBitArray() []uint32 + func (b *BitArray) GetNextSet(from int) int + func (b *BitArray) GetNextUnset(from int) int + func (b *BitArray) GetSize() int + func (b *BitArray) GetSizeInBytes() int + func (b *BitArray) IsRange(start, end int, value bool) (bool, error) + func (b *BitArray) Reverse() + func (b *BitArray) Set(i int) + func (b *BitArray) SetBulk(i int, newBits uint32) + func (b *BitArray) SetRange(start, end int) error + func (b *BitArray) String() string + func (b *BitArray) ToBytes(bitOffset int, array []byte, offset, numBytes int) + func (b *BitArray) Xor(other *BitArray) error + type BitMatrix struct + func NewBitMatrix(width, height int) (*BitMatrix, error) + func NewSquareBitMatrix(dimension int) (*BitMatrix, error) + func ParseBoolMapToBitMatrix(image [][]bool) (*BitMatrix, error) + func ParseStringToBitMatrix(stringRepresentation, setString, unsetString string) (*BitMatrix, error) + func (b *BitMatrix) Clear() + func (b *BitMatrix) Flip(x, y int) + func (b *BitMatrix) FlipAll() + func (b *BitMatrix) Get(x, y int) bool + func (b *BitMatrix) GetBottomRightOnBit() []int + func (b *BitMatrix) GetEnclosingRectangle() []int + func (b *BitMatrix) GetHeight() int + func (b *BitMatrix) GetRow(y int, row *BitArray) *BitArray + func (b *BitMatrix) GetRowSize() int + func (b *BitMatrix) GetTopLeftOnBit() []int + func (b *BitMatrix) GetWidth() int + func (b *BitMatrix) Rotate180() + func (b *BitMatrix) Rotate90() + func (b *BitMatrix) Set(x, y int) + func (b *BitMatrix) SetRegion(left, top, width, height int) error + func (b *BitMatrix) SetRow(y int, row *BitArray) + func (b *BitMatrix) String() string + func (b *BitMatrix) ToString(setString, unsetString string) string + func (b *BitMatrix) ToStringWithLineSeparator(setString, unsetString, lineSeparator string) string + func (b *BitMatrix) Unset(x, y int) + func (b *BitMatrix) Xor(mask *BitMatrix) error + func (img *BitMatrix) At(x, y int) color.Color + func (img *BitMatrix) Bounds() image.Rectangle + func (img *BitMatrix) ColorModel() color.Model + type ChecksumException interface + func NewChecksumException(args ...interface{}) ChecksumException + func WrapChecksumException(e error) ChecksumException + type DecodeHintType int + const DecodeHintType_ALLOWED_EAN_EXTENSIONS + const DecodeHintType_ALLOWED_LENGTHS + const DecodeHintType_ALSO_INVERTED + const DecodeHintType_ASSUME_CODE_39_CHECK_DIGIT + const DecodeHintType_ASSUME_GS1 + const DecodeHintType_CHARACTER_SET + const DecodeHintType_NEED_RESULT_POINT_CALLBACK + const DecodeHintType_OTHER + const DecodeHintType_POSSIBLE_FORMATS + const DecodeHintType_PURE_BARCODE + const DecodeHintType_RETURN_CODABAR_START_END + const DecodeHintType_TRY_HARDER + func (t DecodeHintType) String() string + type Dimension struct + func NewDimension(width, height int) (*Dimension, error) + func (this *Dimension) Equals(other *Dimension) bool + func (this *Dimension) GetHeight() int + func (this *Dimension) GetWidth() int + func (this *Dimension) HashCode() int + func (this *Dimension) String() string + type EncodeHintType int + func (this EncodeHintType) String() string + type FormatException interface + func NewFormatException(args ...interface{}) FormatException + func WrapFormatException(e error) FormatException + type GlobalHistogramBinarizer struct + func (this *GlobalHistogramBinarizer) CreateBinarizer(source LuminanceSource) Binarizer + func (this *GlobalHistogramBinarizer) GetBlackMatrix() (*BitMatrix, error) + func (this *GlobalHistogramBinarizer) GetBlackRow(y int, row *BitArray) (*BitArray, error) + func (this *GlobalHistogramBinarizer) GetHeight() int + func (this *GlobalHistogramBinarizer) GetLuminanceSource() LuminanceSource + func (this *GlobalHistogramBinarizer) GetWidth() int + type GoImageLuminanceSource struct + func (this *GoImageLuminanceSource) Crop(left, top, width, height int) (LuminanceSource, error) + func (this *GoImageLuminanceSource) Invert() LuminanceSource + func (this *GoImageLuminanceSource) IsRotateSupported() bool + func (this *GoImageLuminanceSource) RotateCounterClockwise() (LuminanceSource, error) + func (this *GoImageLuminanceSource) RotateCounterClockwise45() (LuminanceSource, error) + type HybridBinarizer struct + func (this *HybridBinarizer) CreateBinarizer(source LuminanceSource) Binarizer + func (this *HybridBinarizer) GetBlackMatrix() (*BitMatrix, error) + type InvertedLuminanceSource struct + func (this *InvertedLuminanceSource) Crop(left, top, width, height int) (LuminanceSource, error) + func (this *InvertedLuminanceSource) GetMatrix() []byte + func (this *InvertedLuminanceSource) GetRow(y int, row []byte) ([]byte, error) + func (this *InvertedLuminanceSource) Invert() LuminanceSource + func (this *InvertedLuminanceSource) RotateCounterClockwise() (LuminanceSource, error) + func (this *InvertedLuminanceSource) RotateCounterClockwise45() (LuminanceSource, error) + func (this *InvertedLuminanceSource) String() string + type LuminanceSource interface + Crop func(left, top, width, height int) (LuminanceSource, error) + GetHeight func() int + GetMatrix func() []byte + GetRow func(y int, row []byte) ([]byte, error) + GetWidth func() int + Invert func() LuminanceSource + IsCropSupported func() bool + IsRotateSupported func() bool + RotateCounterClockwise func() (LuminanceSource, error) + RotateCounterClockwise45 func() (LuminanceSource, error) + String func() string + func LuminanceSourceInvert(this LuminanceSource) LuminanceSource + func NewInvertedLuminanceSource(delegate LuminanceSource) LuminanceSource + func NewLuminanceSourceFromImage(img image.Image) LuminanceSource + func NewPlanarYUVLuminanceSource(yuvData []byte, dataWidth, dataHeight, left, top, width, height int, ...) (LuminanceSource, error) + func NewRGBLuminanceSource(width, height int, pixels []int) LuminanceSource + type LuminanceSourceBase struct + Height int + Width int + func (this *LuminanceSourceBase) Crop(left, top, width, height int) (LuminanceSource, error) + func (this *LuminanceSourceBase) GetHeight() int + func (this *LuminanceSourceBase) GetWidth() int + func (this *LuminanceSourceBase) IsCropSupported() bool + func (this *LuminanceSourceBase) IsRotateSupported() bool + func (this *LuminanceSourceBase) RotateCounterClockwise() (LuminanceSource, error) + func (this *LuminanceSourceBase) RotateCounterClockwise45() (LuminanceSource, error) + type NotFoundException interface + func NewNotFoundException(args ...interface{}) NotFoundException + func WrapNotFoundException(e error) NotFoundException + type PlanarYUVLuminanceSource struct + func (this *PlanarYUVLuminanceSource) Crop(left, top, width, height int) (LuminanceSource, error) + func (this *PlanarYUVLuminanceSource) GetMatrix() []byte + func (this *PlanarYUVLuminanceSource) GetRow(y int, row []byte) ([]byte, error) + func (this *PlanarYUVLuminanceSource) GetThumbnailHeight() int + func (this *PlanarYUVLuminanceSource) GetThumbnailWidth() int + func (this *PlanarYUVLuminanceSource) Invert() LuminanceSource + func (this *PlanarYUVLuminanceSource) IsCropSupported() bool + func (this *PlanarYUVLuminanceSource) RenderThumbnail() []uint + func (this *PlanarYUVLuminanceSource) String() string + type RGBLuminanceSource struct + func (this *RGBLuminanceSource) Crop(left, top, width, height int) (LuminanceSource, error) + func (this *RGBLuminanceSource) GetMatrix() []byte + func (this *RGBLuminanceSource) GetRow(y int, row []byte) ([]byte, error) + func (this *RGBLuminanceSource) Invert() LuminanceSource + func (this *RGBLuminanceSource) IsCropSupported() bool + func (this *RGBLuminanceSource) String() string + type Reader interface + Decode func(image *BinaryBitmap, hints map[DecodeHintType]interface{}) (*Result, error) + DecodeWithoutHints func(image *BinaryBitmap) (*Result, error) + Reset func() + type ReaderException interface + func WrapReaderException(e error) ReaderException + type Result struct + func NewResult(text string, rawBytes []byte, resultPoints []ResultPoint, format BarcodeFormat) *Result + func NewResultWithNumBits(text string, rawBytes []byte, numBits int, resultPoints []ResultPoint, ...) *Result + func NewResultWithTimestamp(text string, rawBytes []byte, resultPoints []ResultPoint, format BarcodeFormat, ...) *Result + func (this *Result) AddResultPoints(newPoints []ResultPoint) + func (this *Result) GetBarcodeFormat() BarcodeFormat + func (this *Result) GetNumBits() int + func (this *Result) GetRawBytes() []byte + func (this *Result) GetResultMetadata() map[ResultMetadataType]interface{} + func (this *Result) GetResultPoints() []ResultPoint + func (this *Result) GetText() string + func (this *Result) GetTimestamp() int64 + func (this *Result) PutAllMetadata(metadata map[ResultMetadataType]interface{}) + func (this *Result) PutMetadata(mdtype ResultMetadataType, value interface{}) + func (this *Result) String() string + type ResultMetadataType int + func (t ResultMetadataType) String() string + type ResultPoint interface + GetX func() float64 + GetY func() float64 + func NewResultPoint(x, y float64) ResultPoint + func ResultPoint_OrderBestPatterns(pattern0, pattern1, pattern2 ResultPoint) (pointA, pointB, pointC ResultPoint) + type ResultPointBase struct + func (rp ResultPointBase) GetX() float64 + func (rp ResultPointBase) GetY() float64 + type ResultPointCallback func(ResultPoint) + type Writer interface + Encode func(contents string, format BarcodeFormat, width, height int, ...) (*BitMatrix, error) + EncodeWithoutHint func(contents string, format BarcodeFormat, width, height int) (*BitMatrix, error) + type WriterException interface + func NewWriterException(args ...interface{}) WriterException + func WrapWriterException(err error) WriterException