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 library which is 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
- 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 (patterns and dictionaries) and license file (
AbbyyRtrSdk.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
. - 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:
- Install Cordova.
- Get the example project and navigate to the project directory.
cd <path>/cordova-plugin-abbyy-rtr-sdk-sample
- Add platforms and plugins from the project
config.xml
.cordova prepare
- Check installed platforms and plugins.
You should see
cordova 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 (
AbbyyRtrSdk.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:
Developer documentation for this plugin is available from the packages for iOS and Android.