Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QRCodeReader

This implementation can detect and decode QR Codes in an image.

author

Sean Owen

Hierarchy

  • QRCodeReader

Implements

Index

Properties

Private decoder

decoder: Decoder = new Decoder()

Static Private NO_POINTS

NO_POINTS: ResultPoint[] = new Array<ResultPoint>()

Methods

decode

  • Locates and decodes a QR code in an image.

    throws

    NotFoundException if a QR code cannot be found

    throws

    FormatException if a QR code cannot be decoded

    throws

    ChecksumException if error correction fails

    Parameters

    Returns Result

    a representing: string the content encoded by the QR code

Protected getDecoder

reset

  • reset(): void

Static Private extractPureBits

  • This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it. This is a specialized method that works exceptionally fast in this special case.

    see

    com.google.zxing.datamatrix.DataMatrixReader#extractPureBits(BitMatrix)

    Parameters

    Returns BitMatrix

Static Private moduleSize

  • moduleSize(leftTopBlack: Int32Array, image: BitMatrix): number

Generated using TypeDoc