4. Scanner

This category supports all scanning-related functions specifically used to initiate a new identity document scan & ID face verification transaction by uploading based64-encoded images.

4.1. scan

This function Initiate a new identity document scan & ID face verification transaction by providing input images.

Declaration

public JObject scan(string documentFront = "", string documentBack = "", string facePhoto = "",
        string faceVideo = "")

Here are the input and output parameters defined against this function.

Type (In/Out)NameDescription
System.string - [In]documentFrontFront of Document (file path, base64 content, URL, or cache reference). The function will use the BLANK value if the parameter is left out during execution. The function will throw an exception if the BLANK value is passed in this parameter.
System.string - [In]documentBackBack of Document (file path, base64 content, URL, or cache reference). The function will use the BLANK value if the parameter is left out during execution.
System.string - [In]facePhotoFace Photo (file path, base64 content, URL, or cache reference). The function will use the BLANK value if the parameter is left out during execution.
System.string - [In]faceVideoFace Video (file path, base64 content, or URL). The function will use the BLANK value if the parameter is left out during execution.
JObject - [Out]N/AThe scan result object streamed into resp named parameter and returned.

4.2. quickScan

This function lets the developer initiate a quick identity document OCR scan by providing input images.

Declaration

public JObject quickScan(string documentFront = "", string documentBack = "", bool cacheImage = false)

Here are the input and output parameters defined against this function.

Type (In/Out)NameDescription
System.string - [In]documentFrontFront of Document (file path, base64 content, URL3, or cache reference). The function will use the BLANK value if the parameter is left out during execution. The function will throw an exception if the BLANK value is passed in this parameter.
System.string - [In]documentBackBack of Document (file path, base64 content, URL, or cache reference). The function will use the BLANK value if the parameter is left out during execution.
System.boolean - [In]cacheImageCache uploaded image(s) for 24 hours and obtain a cache reference for each image; the reference hash can be used to start a standard scan transaction without re-uploading the file. The function will use false value in case the parameter is left out during execution.
JObject - [Out]N/AThe scan result object streamed into resp named parameter and returned.