UNPKG

jsqr

Version:

A pure javascript QR code reading library that takes in raw images and will locate, extract and parse any QR code found within.

10 lines (9 loc) 278 B
import { BitMatrix } from "../BitMatrix"; import { QRLocation } from "../locator"; export declare function extract(image: BitMatrix, location: QRLocation): { matrix: BitMatrix; mappingFunction: (x: number, y: number) => { x: number; y: number; }; };