regulaforensics / DocumentReader-Android

Android Framework for reading and validation of identification documents
64 stars 26 forks source link

Scenario not supported #18

Closed armandolujafresh closed 4 years ago

armandolujafresh commented 4 years ago

Hello,

Regula is initializing, and loading database, but when setting the scenario like this:

DocumentReader.Instance().processParams().scenario = "FullProcess"

We get the following error: "This scenario is not supported"

Could this be a license issue, we are adding regula to a new app with a new license? Or a depencency issue? Below is our implementation of initializing regula. Dependencies are below also.

DocumentReader.Instance().prepareDatabase(appContext, "Passports", object : DocumentReader.DocumentReaderPrepareCompletion { override fun onPrepareProgressChanged(progress: Int) { val downloadingMsg = getString(R.string.regula_dialog_message) loadingDialog!!.setTitle("$downloadingMsg: $progress%") } override fun onPrepareCompleted(status: Boolean, error: String) { DocumentReader.Instance().initializeReader( appContext, license ) { success, error_initializeReader -> if (success) { if (loadingDialog!!.isShowing) { loadingDialog!!.dismiss() } DocumentReader.Instance().processParams().scenario = "FullProcess" DocumentReader.Instance().showScanner(completion) } else { onDocumentCaptureFailure(-200) } } } })

Dependencies:

build.gradle

maven { url "http://maven.regulaforensics.com/RegulaDocumentReader" }

regula_core_version = '5.0.1332' regula_api_version = '5.0.812'

app/build.gradle

implementation("com.regula.documentreader.fullrfid:core:${regula_core_version}@aar") implementation("com.regula.documentreader:api:${regula_api_version}@aar") { transitive = true }

vyakimchik commented 4 years ago

Hello. Please, make sure that that the database has been downloaded. Otherwise, the scenarios which include OCR functionality won't be available.

armandolujafresh commented 4 years ago

The database appears to be downloaded successfully, as the progress is 100%, and it is calling the completionHandler.

I am listing the scenarios available after the database is downloaded (see attached screenshot): Screen Shot 2020-04-23 at 5.00.30 PM.png (59K) https://mail.google.com/mail/u/0?ui=2&ik=dfa3b5efce&attid=0.1&permmsgid=msg-a:r7677153432705581124&view=att&disp=safe&realattid=f_k9e5gqie0

I tried uninstalling and re-installing the app, same problem.

How would you suggest we debug this issue?

Thanks,

On Fri, Apr 24, 2020 at 3:14 AM Vladislav Yakimchik < notifications@github.com> wrote:

Hello. Please, make sure that that the database has been downloaded. Otherwise, the scenarios which include OCR functionality won't be available.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/regulaforensics/DocumentReader-Android/issues/18#issuecomment-618845971, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFL4VURPWCKFDR7MU3O5Z3ROE36RANCNFSM4MPNE33A .

--

Armando Luja Mobile Developer

1.260.494.8786 | armando.luja@freshconsulting.com matthew.saboda@freshconsulting.com | FreshConsulting.com https://www.freshconsulting.com/

vyakimchik commented 4 years ago

Please reattach the screenshot as it's missed.

armandolujafresh commented 4 years ago

Ok, here is the text:


Support files copied to: /storage/emulated/0/Android/data/ com.staralliance.navigator.dev/files/Regula D/regula: scenario: Mrz, Pre-defined processing scenario for getting MRZ results from input D/regula: scenario: Locate, Pre-defined processing scenario for finding document blank on input D/regula: scenario: Ocr, Pre-defined processing scenario for getting documents Visual Zone OCR results from input D/regula: scenario: DocType, Pre-defined processing scenario for recognizing type of the document from input D/regula: scenario: MrzOrLocate, Pre-defined processing scenario for finding document blank and/or getting MRZ results from input D/regula: scenario: MrzAndLocate, Pre-defined processing scenario for finding document blank and getting MRZ results from input D/regula: scenario: MrzOrOcr, Pre-defined processing scenario for getting MRZ or Visual Zone OCR results from input D/regula: scenario: LocateVisual_And_MrzOrOcr, Pre-defined processing scenario for finding document blank and getting MRZ or Visual Zone OCR results from input D/regula: scenario: Id3Rus, Pre-defined processing scenario for getting all information from ID3 Russian document D/regula: scenario: Capture, Scenario for obtaining an original image without any processing D/SurfaceView: onWindowVisibilityChanged(0) true com.regula.common.CameraFragment$CameraPreview{3

[image: image.png]

On Fri, Apr 24, 2020 at 8:13 AM Vladislav Yakimchik < notifications@github.com> wrote:

Please reattach the screenshot as it's missed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/regulaforensics/DocumentReader-Android/issues/18#issuecomment-618973420, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFL4VWKSKSA3FZKW3RAO7LROF7AFANCNFSM4MPNE33A .

--

Armando Luja Mobile Developer

1.260.494.8786 | armando.luja@freshconsulting.com matthew.saboda@freshconsulting.com | FreshConsulting.com https://www.freshconsulting.com/

vyakimchik commented 4 years ago

The license which you bought doesn't support the functionality which uses the FullProcess scenario, therefore, the FullProcess scenario isn't available. If you are willing it, reach out to our sales team to discuss all details.

armandolujafresh commented 4 years ago

Thanks for the quick response. We have updated the app to use the scenario 'Ocr', and it is working great now.

On Fri, Apr 24, 2020 at 8:31 AM Vladislav Yakimchik < notifications@github.com> wrote:

Closed #18 https://github.com/regulaforensics/DocumentReader-Android/issues/18.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/regulaforensics/DocumentReader-Android/issues/18#event-3269200549, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFL4VTZ25I3YBWQXF7KGXLROGBCXANCNFSM4MPNE33A .

--

Armando Luja Mobile Developer

1.260.494.8786 | armando.luja@freshconsulting.com matthew.saboda@freshconsulting.com | FreshConsulting.com https://www.freshconsulting.com/