ABBYY Real-Time Recognition SDK Cordova Plugin
ABBYY Real-Time Recognition SDK Cordova Plugin allows to use the Text Capture and Data Capture features of ABBYY Real-Time Recognition SDK (RTR SDK) in apps based on the Apache Cordova framework.
This plugin requires the ABBYY RTR SDK native library which is available for Android and iOS. You can download its free version from the ABBYY RTR SDK website. Extended versions of the native libraries are also available, with more recognition languages, more Data Capture features, and full Text Capture scenario support. If you are interested in the extended version, please contact the ABBYY Sales Team.
The native libraries support the following systems:
- Android: version 4.4 or later for ARMv7 processors
- iOS: versions 8.x and later
Getting started
- Add the plugin to your project.
cd MyProject cordova plugin add cordova-plugin-abbyy-rtr-sdk
- Download ABBYY RTR SDK from https://rtrsdk.com/ (or get the extended version from the ABBYY Sales Team) and add it to your project:
- Create the
www/rtr_assets
subdirectory in the project. - Copy RTR SDK assets (patterns and dictionaries) and license file (
AbbyyRtrSdk.license
) towww/rtr_assets
. - Copy the Android library (
abbyy-rtr-sdk-1.0.aar
) tolibs/android
. - Copy the iOS framework (
AbbyyRtrSDK.framework
) tolibs/ios
.
- Create the
- Add
libs/android
andlibs/ios
to the linker search paths.- For Android, add the following settings to
platforms/android/build.gradle
:allprojects { repositories { flatDir { dirs '../../libs/android' } } }
- For iOS, add the following to
platforms/ios/cordova/build.xcconfig
:FRAMEWORK_SEARCH_PATHS = "../../libs/ios"
- For Android, add the following settings to
- To build and run your project:
- For Android:
cordova build android cordova run android
- For iOS, specify your Development Team:
cordova build ios --buildFlag="DEVELOPMENT_TEAM=<YOUR_TEAM>" cordova run ios --buildFlag="DEVELOPMENT_TEAM=<YOUR_TEAM>"
- For Android:
Documentation
Developer documentation for this plugin is available from the npm package (see RtrSdkCordovaDevelopersGuide.pdf
).
Developer documentation for the free version of ABBYY RTR SDK is available at https://rtrsdk.com/documentation/.
Developer documentation for the extended version is available from the extended version packages for iOS and Android.