Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-scanner-text

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-scanner-text - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

esm2020/lib/ngx-scanner-options.model.mjs

0

index.d.ts

@@ -0,0 +0,0 @@ /**

11

lib/ngx-scanner-options.model.d.ts

@@ -46,3 +46,3 @@ export interface Configs {

}
type LoggerMessage = {
export declare type LoggerMessage = {
jobId: string;

@@ -129,3 +129,3 @@ progress: number;

}
declare enum OEM {
export declare enum OEM {
TESSERACT_ONLY = 0,

@@ -136,3 +136,3 @@ LSTM_ONLY = 1,

}
declare enum PSM {
export declare enum PSM {
OSD_ONLY = "0",

@@ -153,3 +153,3 @@ AUTO_OSD = "1",

}
declare const enum imageType {
export declare const enum imageType {
COLOR = 0,

@@ -159,3 +159,3 @@ GREY = 1,

}
type ImageLike = string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | CanvasRenderingContext2D | File | Blob | ImageData | any;
export declare type ImageLike = string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | CanvasRenderingContext2D | File | Blob | ImageData | any;
export interface Block {

@@ -278,2 +278,1 @@ paragraphs: Paragraph[];

}
export {};

@@ -11,2 +11,6 @@ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';

logger$: BehaviorSubject<{}>;
image$: BehaviorSubject<{
width: number;
height: number;
}>;
canvas: ElementRef<HTMLCanvasElement>;

@@ -40,3 +44,3 @@ private ctx;

static ɵfac: i0.ɵɵFactoryDeclaration<NgxScannerTextComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxScannerTextComponent, "ngx-scanner-text", ["scanner"], { "configs": { "alias": "configs"; "required": false; }; }, { "event": "event"; }, never, never, false, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxScannerTextComponent, "ngx-scanner-text", ["scanner"], { "configs": "configs"; }, { "event": "event"; }, never, never, false>;
}

@@ -0,0 +0,0 @@ import * as i0 from "@angular/core";

{
"name": "ngx-scanner-text",
"version": "1.0.2",
"version": "1.0.3",
"description": "This library is built to support optical character recognition from images provided as urls.",

@@ -13,3 +13,10 @@ "keywords": [

"ngx-tesseract",
"scanner"
"scan-ocr",
"machine",
"scanner",
"card",
"detect",
"passport",
"mrz-reader",
"mrz"
],

@@ -23,4 +30,4 @@ "author": "DaiDH <duonghuudai.id002@gmail.com>",

"peerDependencies": {
"@angular/common": "^16.1.0",
"@angular/core": "^16.1.0"
"@angular/common": "^14.2.0",
"@angular/core": "^14.2.0"
},

@@ -31,4 +38,7 @@ "dependencies": {

},
"sideEffects": false,
"module": "fesm2022/ngx-scanner-text.mjs",
"module": "fesm2015/ngx-scanner-text.mjs",
"es2020": "fesm2020/ngx-scanner-text.mjs",
"esm2020": "esm2020/ngx-scanner-text.mjs",
"fesm2020": "fesm2020/ngx-scanner-text.mjs",
"fesm2015": "fesm2015/ngx-scanner-text.mjs",
"typings": "index.d.ts",

@@ -41,7 +51,10 @@ "exports": {

"types": "./index.d.ts",
"esm2022": "./esm2022/ngx-scanner-text.mjs",
"esm": "./esm2022/ngx-scanner-text.mjs",
"default": "./fesm2022/ngx-scanner-text.mjs"
"esm2020": "./esm2020/ngx-scanner-text.mjs",
"es2020": "./fesm2020/ngx-scanner-text.mjs",
"es2015": "./fesm2015/ngx-scanner-text.mjs",
"node": "./fesm2015/ngx-scanner-text.mjs",
"default": "./fesm2020/ngx-scanner-text.mjs"
}
}
},
"sideEffects": false
}
export * from './lib/ngx-scanner-text.component';
export * from './lib/ngx-scanner-text.module';
export * from './lib/ngx-scanner-options.model';

@@ -11,3 +11,3 @@ # ngx-scanner-text

```
npm i ngx-scanner-text@<version> --save
npm install ngx-scanner-text@<version> --save
```

@@ -110,3 +110,3 @@

type LoggerMessage = {
export type LoggerMessage = {
jobId: string;

@@ -131,2 +131,3 @@ progress: number;

}
export interface WorkerParams {

@@ -144,2 +145,3 @@ tessedit_ocr_engine_mode: OEM;

}
export interface OutputFormats {

@@ -160,2 +162,3 @@ text: boolean;

}
export interface RecognizeOptions {

@@ -168,2 +171,3 @@ rectangle: Rectangle;

}
export interface ConfigResult {

@@ -173,2 +177,3 @@ jobId: string;

}
export interface RecognizeResult {

@@ -178,2 +183,3 @@ jobId: string;

}
export interface GetPDFResult {

@@ -183,2 +189,3 @@ jobId: string;

}
export interface DetectResult {

@@ -188,2 +195,3 @@ jobId: string;

}
export interface DetectData {

@@ -196,2 +204,3 @@ tesseract_script_id: number | null;

}
export interface Rectangle {

@@ -203,3 +212,4 @@ left: number;

}
enum OEM {
export enum OEM {
TESSERACT_ONLY,

@@ -210,3 +220,4 @@ LSTM_ONLY,

}
enum PSM {
export enum PSM {
OSD_ONLY = '0',

@@ -227,3 +238,4 @@ AUTO_OSD = '1',

}
const enum imageType {
export const enum imageType {
COLOR = 0,

@@ -233,3 +245,4 @@ GREY = 1,

}
type ImageLike =
export type ImageLike =
| string

@@ -244,2 +257,3 @@ | HTMLImageElement

| any;
export interface Block {

@@ -258,2 +272,3 @@ paragraphs: Paragraph[];

}
export interface Baseline {

@@ -266,2 +281,3 @@ x0: number;

}
export interface Bbox {

@@ -273,2 +289,3 @@ x0: number;

}
export interface Line {

@@ -285,2 +302,3 @@ words: Word[];

}
export interface Paragraph {

@@ -298,2 +316,3 @@ lines: Line[];

}
export interface Symbol {

@@ -315,2 +334,3 @@ choices: Choice[];

}
export interface Choice {

@@ -320,2 +340,3 @@ text: string;

}
export interface Word {

@@ -346,2 +367,3 @@ symbols: Symbol[];

}
export interface Page {

@@ -380,8 +402,4 @@ blocks: Block[] | null;

<tr>
<td>Angular 16</td>
<td>1.0.2</td>
</tr>
<tr>
<td>Angular 14</td>
<td>1.0.1</td>
<td>1.0.3</td>
</tr>

@@ -388,0 +406,0 @@ </table>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc