cordova-plugin-mobile-ocr
Advanced tools
Comparing version 1.0.1 to 2.0.0
{ | ||
"name": "cordova-plugin-mobile-ocr", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -112,3 +112,3 @@ |[Introduction](#cordova-plugin-mobile-ocr) | [Supported_Platforms](#supported-platforms) | [Installation_Steps](#installation-steps) | [Plugin_Usage](#plugin-usage) | [Working_Examples](#working-examples) | [More_about_us!](#more-about-us)| | ||
//Use above two lines to show recognizedText in html | ||
console.log(recognizedText) | ||
console.log(recognizedText); | ||
alert(recognizedText); | ||
@@ -132,3 +132,3 @@ } | ||
function onSuccess(imageURI) { | ||
textocr.recText(0, 3 imageURI, onSuccess, onFail); | ||
textocr.recText(0, 3, imageURI, onSuccess, onFail); | ||
// for sourceType Use 0,2 // 1,3,4 won't work | ||
@@ -140,3 +140,3 @@ // for returnType Use 0,1,2 or 3 // 3 returns duplicates[see table] | ||
//Use above two lines to show recognizedText in html | ||
console.log(recognizedText) | ||
console.log(recognizedText); | ||
alert(recognizedText); | ||
@@ -143,0 +143,0 @@ } |
/*global cordova, module*/ | ||
module.exports = { | ||
recText: function (sourceType, returnType, imageSource, successCallback, errorCallback) { | ||
cordova.exec(successCallback, errorCallback, "Textocr", "recText", [sourceType, returnType, imageSource]); | ||
recText: function (sourceType, imageSource, successCallback, errorCallback) { | ||
cordova.exec(successCallback, errorCallback, "Textocr", "recText", [sourceType, imageSource]); | ||
} | ||
}; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57860