0.0.18 • Published 3 years ago

ng-barcode-detector v0.0.18

Weekly downloads
194
License
-
Repository
-
Last release
3 years ago

ng-barcode-detector

A library using the Barcode Detection API implemented in Chrome 83.

The Barcode Detection API is a subset of the Shape Detection API which provides the ability to detect and decode barcodes in an image provided by script. The image may come from any type of image buffer source such as an image, video or canvas tag.

Some native platforms include built-in libraries for performing text detection and optical character recognition (OCR) in images. The availability of these libraries means that developers do not need to include a large third party library.

Demo

Installation

npm install --save ng-barcode-detector

Usage

import { NgBarcodeDetectorModule } from 'ng-barcode-detector';

@NgModule({
  imports: [NgBarcodeDetectorModule],
})
export class AppModule {}
<ng-barcode-detector (detect)="onDetect($event)"></ng-barcode-detector>
import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
})
export class AppComponent {
  public onDetect(result: string): void {
    alert(result);
  }
}
0.0.17

3 years ago

0.0.18

3 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago