cordova-plugin-scanbot-sdk
Advanced tools
Comparing version 4.10.0 to 4.10.1-beta1
@@ -1065,3 +1065,10 @@ | ||
*/ | ||
minimum1DBarcodesQuietZone?: number | ||
minimum1DBarcodesQuietZone?: number | ||
/** | ||
* With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed. | ||
* You can set it to 'false', if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29). | ||
* The default is 'true'. | ||
* NOTE: Currently works for CODE128 barcodes only! | ||
*/ | ||
enableGS1Decoding?: boolean | ||
} | ||
@@ -1519,3 +1526,2 @@ | ||
documentImageSizeLimit?: Size; | ||
originalImageFileUri: string; | ||
@@ -1808,5 +1814,7 @@ documentImageFileUri?: string; | ||
config: ScanbotSDKConfiguration): void; | ||
getLicenseInfo( | ||
success: SuccessCallback<GenericResult & {info: LicenseInfo}>, | ||
error: ErrorCallback): void; | ||
setLicenseFailureHandler(callback: SuccessCallback<LicenseFailure>): void; | ||
@@ -1816,6 +1824,27 @@ | ||
success: SuccessCallback<GenericResult & BarcodeResult>, | ||
error: ErrorCallback, args: { imageFileUri: string }): void; | ||
error: ErrorCallback, args: { | ||
imageFileUri: string, | ||
barcodeFormats?: BarcodeFormat[], | ||
acceptedDocumentFormats?: BarcodeDocumentFormat[], | ||
minimumTextLength?: number, // NOTE: This feature works on ITF barcodes only. | ||
maximumTextLength?: number, // NOTE: This feature works on ITF barcodes only. | ||
minimum1DBarcodesQuietZone?: number //NOTE: This feature works on ITF barcodes only. | ||
}): void; | ||
detectBarcodesOnImages( | ||
success: SuccessCallback<GenericResult & DocumentDetectionResult>, | ||
error: ErrorCallback, args: { | ||
imageFilesUris: string[], | ||
barcodeFormats?: BarcodeFormat[], | ||
acceptedDocumentFormats?: BarcodeDocumentFormat[], | ||
minimumTextLength?: number, // NOTE: This feature works on ITF barcodes only. | ||
maximumTextLength?: number, // NOTE: This feature works on ITF barcodes only. | ||
minimum1DBarcodesQuietZone?: number //NOTE: This feature works on ITF barcodes only. | ||
} | ||
): void | ||
detectDocument( | ||
success: SuccessCallback<GenericResult & DocumentDetectionResult>, | ||
error: ErrorCallback, args: { imageFileUri: string, quality?: number }): void; | ||
applyImageFilter( | ||
@@ -1825,2 +1854,3 @@ success: SuccessCallback<GenericResult & {imageFileUri: string}>, | ||
}): void; | ||
rotateImage( | ||
@@ -1830,5 +1860,7 @@ success: SuccessCallback<GenericResult & {imageFileUri: string}>, | ||
}): void; | ||
getOcrConfigs( | ||
success: SuccessCallback<GenericResult & { languageDataPath: string; installedLanguages: string[]; }>, | ||
error: ErrorCallback): void; | ||
performOcr( | ||
@@ -1855,2 +1887,3 @@ success: SuccessCallback<GenericResult & { plainText?: string; pdfFileUri?: string; jsonData?: any; }>, | ||
args: {originalImageFileUri: string}): void; | ||
setDocumentImage( | ||
@@ -1860,2 +1893,3 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page, imageUri: string}): void; | ||
detectDocumentOnPage( | ||
@@ -1865,2 +1899,3 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page}): void; | ||
applyImageFilterOnPage( | ||
@@ -1870,2 +1905,3 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page, imageFilter: ImageFilter}): void; | ||
rotatePage( | ||
@@ -1875,2 +1911,3 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page, times: number}): void; | ||
getFilteredDocumentPreviewUri( | ||
@@ -1880,2 +1917,3 @@ success: SuccessCallback<GenericResult & {imageFileUri: string}>, | ||
args: {page: Page, imageFilter: ImageFilter}): void; | ||
removePage( | ||
@@ -1882,0 +1920,0 @@ success: SuccessCallback<GenericResult>, |
{ | ||
"name": "cordova-plugin-scanbot-sdk", | ||
"version": "4.10.0", | ||
"version": "4.10.1-beta1", | ||
"description": "Cordova Plugin for Scanbot SDK", | ||
@@ -49,3 +49,3 @@ "cordova": { | ||
"dependencies": { | ||
"adm-zip": "0.4.16", | ||
"adm-zip": "0.5.5", | ||
"path": "0.12.7", | ||
@@ -55,3 +55,3 @@ "request": "2.88.2" | ||
"devDependencies": { | ||
"adm-zip": "0.4.16", | ||
"adm-zip": "0.5.5", | ||
"path": "0.12.7", | ||
@@ -58,0 +58,0 @@ "request": "2.88.2" |
@@ -24,2 +24,6 @@ /* | ||
function makeTestCaller(actionName) { | ||
return cordova_exec(actionName, "ScanbotSdkTest"); | ||
} | ||
var API = { | ||
@@ -40,17 +44,5 @@ | ||
// ------------------------------------------------ | ||
// Scanbot SDK functions: | ||
// Scanbot SDK operations: | ||
initializeSdk: makeCaller("initializeSdk"), | ||
getLicenseInfo: makeCaller("getLicenseInfo"), | ||
setLicenseFailureHandler: function(callback) { | ||
console.log("setLicenseFailureHandler: ", callback); | ||
cordova.exec( | ||
function(params) { | ||
callback(params); | ||
}, | ||
function() { | ||
}, "ScanbotSdk", "setLicenseFailureHandler", []); | ||
}, | ||
detectDocument: makeCaller("detectDocument"), | ||
@@ -76,3 +68,16 @@ applyImageFilter: makeCaller("applyImageFilter"), | ||
refreshImageUris: makeCaller("refreshImageUris"), | ||
getImageData: makeCaller("getImageData") | ||
getImageData: makeCaller("getImageData"), | ||
setLicenseFailureHandler: function(callback) { | ||
cordova.exec( | ||
function(params) { | ||
callback(params); | ||
}, | ||
function() { | ||
}, "ScanbotSdk", "setLicenseFailureHandler", []); | ||
}, | ||
// Scanbot SDK operations: | ||
Test: { | ||
saveFile: makeTestCaller("saveFile") | ||
} | ||
}; | ||
@@ -109,2 +114,3 @@ | ||
promises.UI = promisifyObject(API.UI); | ||
promises.Test = promisifyObject(API.Test); | ||
} | ||
@@ -111,0 +117,0 @@ return promises; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
490901
66
6224
1
+ Addedadm-zip@0.5.5(transitive)
- Removedadm-zip@0.4.16(transitive)
Updatedadm-zip@0.5.5