mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
lint
This commit is contained in:
parent
bf88f6ee51
commit
2ae2a683d2
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
export interface OpenALPROptions {
|
export interface OpenALPROptions {
|
||||||
/** Country used for scanning the license plate */
|
/** Country used for scanning the license plate */
|
||||||
@ -19,7 +19,7 @@ export interface OpenALPRResult {
|
|||||||
/**
|
/**
|
||||||
* @name OpenALPR
|
* @name OpenALPR
|
||||||
* @description
|
* @description
|
||||||
* This Cordova plugin adds support for the OpenALPR (Automatic License Plate Recognition) library, which provides support for retrieving the license plate from a picture.
|
* This Cordova plugin adds support for the OpenALPR (Automatic License Plate Recognition) library, which provides support for retrieving the license plate from a picture.
|
||||||
*
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```typescript
|
* ```typescript
|
||||||
@ -34,7 +34,7 @@ export interface OpenALPRResult {
|
|||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* // To get imageData, you can use the @ionic-native/camera module for example. It works with DestinationType.FILE_URI and DATA_URL
|
* // To get imageData, you can use the @ionic-native/camera module for example. It works with DestinationType.FILE_URI and DATA_URL
|
||||||
*
|
*
|
||||||
* this.openALPR.scan(imageData, scanOptions)
|
* this.openALPR.scan(imageData, scanOptions)
|
||||||
* .then((res: [OpenALPRResult]) => console.log(res))
|
* .then((res: [OpenALPRResult]) => console.log(res))
|
||||||
* .catch((error: Error) => console.error(error));
|
* .catch((error: Error) => console.error(error));
|
||||||
@ -48,10 +48,8 @@ export interface OpenALPRResult {
|
|||||||
repo: 'https://github.com/iMicknl/cordova-plugin-openalpr',
|
repo: 'https://github.com/iMicknl/cordova-plugin-openalpr',
|
||||||
platforms: ['Android', 'iOS']
|
platforms: ['Android', 'iOS']
|
||||||
})
|
})
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class OpenALPR extends IonicNativePlugin {
|
export class OpenALPR extends IonicNativePlugin {
|
||||||
|
|
||||||
Country = {
|
Country = {
|
||||||
AU: 'au',
|
AU: 'au',
|
||||||
BR: 'br',
|
BR: 'br',
|
||||||
@ -64,11 +62,13 @@ export class OpenALPR extends IonicNativePlugin {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function does something
|
* This function does something
|
||||||
* @param imageData {any} Base64 encoding of the image data or the image file URI
|
* @param imageData {any} Base64 encoding of the image data or the image file URI
|
||||||
* @param options {OpenALPROptions} Options to pass to the OpenALPR scanner
|
* @param options {OpenALPROptions} Options to pass to the OpenALPR scanner
|
||||||
* @return {Promise<any>} Returns a promise that resolves when something happens
|
* @return {Promise<any>} Returns a promise that resolves when something happens
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
scan(imageData: any, options?: OpenALPROptions): Promise<any> { return; }
|
scan(imageData: any, options?: OpenALPROptions): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user