cordova-plugin-abbyy-rtr-sdk-sample
v1.0.7
Published
ABBYY Mobile Capture SDK Cordova Plugin Example
Downloads
41
Maintainers
Readme
ABBYY Mobile Capture Cordova Plugin
ABBYY Mobile Capture Cordova Plugin allows to use the Text Capture, Data Capture and Image Capture features of ABBYY Mobile Capture in apps based on the Apache Cordova framework.
This plugin requires the ABBYY Mobile Capture native libraries which are available for Android and iOS. You can request ABBYY Mobile Capture trial version on the ABBYY website.
The native libraries support the following systems:
- Android version: 5.0 or later for ARMv7 (armeabi-v7a) and ARMv8 (arm64-v8a) processors
- iOS: versions 11.x and later
Getting started
- Add the plugin to your project.
cd MyProject cordova plugin add cordova-plugin-abbyy-rtr-sdk
- Request ABBYY Mobile Capture trial version on the ABBYY website and add it to your project:
- Create the
www/rtr_assets
subdirectory in the project. - Copy Mobile Capture SDK assets and license file (
MobileCapture.License
) towww/rtr_assets
. - Copy Android libraries (
abbyy-rtr-sdk-1.0.aar
andabbyy-ui-1.0.aar
) tolibs/android
. - Copy iOS frameworks (
AbbyyRtrSDK.framework
and other modules) tolibs/ios
. - The
libs/android
andlibs/ios
paths should be added to the linker search paths. This step is performed automatically during the plugin installation.
- Create the
- To build and run your project:
- Android:
cordova build android cordova run android
- iOS (don't forget to specify your Development Team):
cordova build ios --buildFlag="-UseModernBuildSystem=0" --buildFlag="DEVELOPMENT_TEAM=<YOUR_TEAM>" cordova run ios --buildFlag="-UseModernBuildSystem=0" --buildFlag="DEVELOPMENT_TEAM=<YOUR_TEAM>"
- Android:
ABBYY Mobile Capture Cordova Plugin Example
How to run this app
- Install Cordova.
- Get the example project and navigate to the project directory.
cd <path>/sample-cordova
- Add platforms and plugins from the project
config.xml
.cordova prepare
- Check installed platforms and plugins.
You should seecordova platform ls cordova plugin ls
android
andios
in platforms andcordova-plugin-abbyy-rtr-sdk
in plugins. - Request ABBYY Mobile Capture trial version on the ABBYY website and add it to the example:
- Copy RTR SDK assets (patterns and dictionaries) and your license file (
MobileCapture.License
) towww/rtr_assets
. - Copy the Android library (
abbyy-rtr-sdk-1.0.aar
) tolibs/android
. - Copy iOS frameworks (
AbbyyRtrSDK.framework
and other modules) tolibs/ios
. These paths already exist in the example project. - The
libs/android
andlibs/ios
paths should be added to the linker search paths. This step is performed automatically during the plugin installation.
- Copy RTR SDK assets (patterns and dictionaries) and your license file (
- Connect a device via USB, build and run.
- Android:
cordova build android cordova run android
- iOS (don't forget to specify your Development Team):
cordova build ios --buildFlag="-UseModernBuildSystem=0" --buildFlag="DEVELOPMENT_TEAM=<YOUR_TEAM>" cordova run ios --buildFlag="-UseModernBuildSystem=0" --buildFlag="DEVELOPMENT_TEAM=<YOUR_TEAM>"
- Android:
Documentation
Developer documentation for this plugin is available from the packages for iOS and Android.