interface Reader {
    contInterval?: number;
    enable: boolean;
    init?: boolean | {
        (config, callback?): void;
        (config, callback, imageWrapper): void;
    };
    lastProcessing?: boolean;
    name: string;
    processing?: boolean;
    zdestroy(): void;
    zenable(wgt, enable?): void;
    zexecute(wgt): void;
    zinit?(wgt, video, canvas, target): void;
    zsetType?(wgt): void;
    zsetTypes?(): void;
}

Properties

contInterval?: number
enable: boolean
init?: boolean | {
    (config, callback?): void;
    (config, callback, imageWrapper): void;
}

Type declaration

    • (config, callback?): void
    • This method initializes the library for a given configuration config (see below) and invokes the callback when Quagga is ready to start. The initialization process also requests for camera access if real-time detection is configured.

      Parameters

      • config: QuaggaJSConfigObject
      • Optional callback: ((err) => void)
          • (err): void
          • Parameters

            • err: any

            Returns void

      Returns void

    • (config, callback, imageWrapper): void
    • Parameters

      • config: QuaggaJSConfigObject
      • callback: ((err) => void)
          • (err): void
          • Parameters

            • err: any

            Returns void

      • imageWrapper: any

      Returns void

lastProcessing?: boolean
name: string
processing?: boolean

Methods

  • Returns void

  • Parameters

    Returns void

  • Parameters

    • wgt: Barcodescanner
    • video: HTMLVideoElement
    • canvas: HTMLCanvasElement
    • target: HTMLElement

    Returns void

  • FIXME: Typo for Reader.zsetType? However, their signatures don't match.

    Returns void