UNPKG

angular2-qrscanner

Version:

QrScanner will scan for a QRCode from your Web-cam and return its string representation by drawing the captured image onto a 2D Canvas and use [@LazarSoft/jsqrcode](https://github.com/LazarSoft/jsqrcode) to check for a valid QRCode every *Xms*

25 lines (24 loc) 1.24 kB
import { PerspectiveTransform } from "./perpesctivetransform"; export declare class DetectorResult { bits: any; points: any; constructor(bits: any, points: any); } export declare class Detector { image: any; rawImage: any; width: number; height: number; constructor(image: any, rawImage: any, width: number, height: number); sizeOfBlackWhiteBlackRun(fromX: any, fromY: any, toX: any, toY: any): number; sizeOfBlackWhiteBlackRunBothWays(fromX: any, fromY: any, toX: any, toY: any): number; calculateModuleSizeOneWay: (pattern: any, otherPattern: any) => number; calculateModuleSize: (topLeft: any, topRight: any, bottomLeft: any) => number; distance: (pattern1: any, pattern2: any) => number; computeDimension: (topLeft: any, topRight: any, bottomLeft: any, moduleSize: any) => number; findAlignmentInRegion: (overallEstModuleSize: any, estAlignmentX: any, estAlignmentY: any, allowanceFactor: any) => any; createTransform: (topLeft: any, topRight: any, bottomLeft: any, alignmentPattern: any, dimension: any) => PerspectiveTransform; sampleGrid: (image: any, transform: any, dimension: any) => any; processFinderPatternInfo(info: any): any; detect: () => any; }