You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tm-ng-ocr

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-ng-ocr

npm i tm-ng-ocr

0.2.26
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Getting Started

npm i tm-ng-ocr

Get your api key: [talentomobile] (https://www.talentomobile.com/).

Configuration

Ensure you import the module and the dependencies:

import { TmNgOcrModule } from 'tm-ng-ocr';

@NgModule({
   imports: [
        ...OtherModules,
        TmNgOcrModule,
   ]
})
export class AppModule {}

Basic Example

@Component({
    selector: 'app',
    template: `<tm-ng-ocr token="YOUR_API_KEY" [id]="YOUR_ID" (result)="result($event)" (detected)="detected($event)" (error)="error($event)"></tm-ng-ocr>`
});
export class App {
    result(e){
        console.log(e)
    }
    detected(e){
        console.log(e)
    }
    error(e){
        console.log(e)
    }
}

Return Object

{
    "back_completed": "true",
    "birthday": "550935386",
    "completed": true,
    "country": "ESP",
    "debug_img": "",
    "denoise": "66",
    "expire": "1857821786",
    "frame_completed": "true",
    "front_completed": "true",
    "back_completed": "false",
    "id_photo": "",
    "it": "2",
    "name": "EPANOLA ESPANOLA  CARMEN",
    "name_confidence": "73",
    "nationality": "ESP",
    "number": "99999999R",
    "number_back": "99999999R",
    "sex": "F",
    "sharpness": "30.000000",
    "still_back": "",
    "still_front": "",
    "type": "3back",
    "version_back": "3",
    "version_front": "3",
    "video_back": "",
    "video_front": ""
}

FAQs

Package last updated on 02 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts