Integration Documentation(CustomView Mode)

Installation

  1. Add the repository

  2. Add the dependencies in your project's gradle:

  3. If your application has package size constraints or you need to reduce the app bundle size, you can optimize by excluding the model file module from the dependencies in step 2. This modification reduces the SDK package size by approximately 1MB. The model files will be downloaded automatically when users first launch the SDK. Please be aware that network connectivity issues may cause download failures.

Usage

  1. Initialize the SDK

    Add the following initialization code to the custom application

  2. Check license.

    The license is obtained by your server calling our openAPI, you need to check license before starting the IQA activity.

  3. User binding (highly recommended).

    You can use this method to pass us your unique user ID, and we will establish a mapping relationship based on that ID. It's easy to track logs with us in case of problems.

  4. Create GlobalIQAView in XML. Below is the suggested syntax.

    It is recommended to set the view aspect ratio to 8:5.

  5. Start in real-time scanning mode.

  6. Start in manual photo mode.

  7. Stop Detection

  8. Destroy the GlobalIQAView.

ImageWarnCode

WarnCodeDescriptionSuggested prompts
NO_CARDNo card detected.No document is detected
TOO_SMALL_CARDCard area is too small.Document is too small
EDGE_CROSSCard edges are incomplete.The document is incomplete\nplease make sure the document in the center with the edges aligned
CARD_POOR_QUALITYLow card quality: Dim/Blurred/Overexposed.Document is too dim/blurred/overexposed
CARD_OCCLUDEDCard area is occluded.Please keep your ID card unobstructed
GOODCard quality is acceptable.Please hold the phone steadily

FAQ

See FAQ