Enable OCR review screen

When you initialize OneSDK, you can enable a review screen in the configuration to display the OCR results back to the user. This review screen is for the headed version of the OCR component.

To enable the review screen, you need to add the provideReviewScreen parameter.

Sample code

const oneSdk = await OneSdk({
  session: sessionObjectFromBackend,
  recipe: {
    ocr: {
      provideReviewScreen: true,
      provider: {
        name: "<PROVIDER_NAME>"
      }
    },
    form: {
      provider: {
        name: 'legacy',
        version: 'v4'
      },
    }
  }
});

Once enabled, end users are provided with a review/edit screen after performing OCR. This will allow them to check whether the collected information is correct and update if necessary.