Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2026 Changes in this version + var ErrInvalidImage = errors.New("imagedecode: invalid image") + var ErrLimitExceeded = errors.New("imagedecode: limit exceeded") + var ErrNotFound = errors.New("imagedecode: barcode not found") + var ErrUnsupportedFormat = errors.New("imagedecode: unsupported format") + func Decode(ctx context.Context, input image.Image, options Options) (barcode.DecodeResult, error) + func DecodeEncoded(ctx context.Context, input io.Reader, options Options) (barcode.DecodeResult, error) + type Limits struct + MaxCandidates int + MaxCorrections int + MaxDuration time.Duration + MaxEncodedBytes int + MaxHeight int + MaxMemoryBytes int + MaxPayloadBytes int + MaxPixels int + MaxRotations int + MaxWidth int + type Options struct + AllowInverted bool + AssumeCode39Checksum bool + Formats []barcode.Format + Limits Limits + TryHarder bool