Cordova Plugin - startDataCapture options profile - ID_HK

  • 39 Views
  • Last Post 1 weeks ago
ryanalbartus posted this 2 weeks ago

Hi All ~ 

After finished the "Getting started", I can call "startTextCapture" to capture the text.

Now I am testing the startDataCapture function on the ionic 3 project. 

Below is my code : 

 ======================================

openDataCapture(){

    const options = {

      profile : 'ID_HK',

      licenseFileName : 'SRTT-0000-0000-0000-0000-0000.License'

    };

 

    this.abbyyRTR.startDataCapture(options)

    .then((res: any) => alert(JSON.stringify(res)))

    .catch((error: any) => alert(JSON.stringify(error)));

  }

 ====================================== 

But I got the Error Message: Unsupported profile: 'ID_HK'. Service cannot be created. 

 (It show at the top of the camera preview with red font color )

May I know how can I set the HKID profile?


Related Document and Link : 

https://cdn.jsdelivr.net/npm/cordova-plugin-abbyy-rtr-sdk@1.0.8/RtrSdkCordovaDevelopersGuide.pdf

https://rtrsdk.com/documentation/specifications/data-capture-profiles/

https://github.com/abbyysdk/RTR-SDK.Cordova

Oksana Serdyuk posted this 1 weeks ago

Hi,

We have requested additional information by email within your support ticket.

Looking forward to hearing from you.

Close