Menu

Best practices guidelines for Samsung India Identity SDK

The following are the recommended best practices for developers and agent device operators:

For developers

The following are the recommended best practices for developers while developing applications using the Samsung India Identity SDK:

  1. License activation is a one-time process and so it is strongly recommended that you check whether license is activated or not by the device user. You can check if the license is activated or not by calling isLicenseActivated(). During license activation, there is a (KLMS Agent) privacy policy agreement that is prompted to the user to accept.

  2. It is also recommended that you make use of the proximity sensor APIs to indicate when the capture distance is too close so that an optimal distance can be maintained at the time of capture.
  3. You must rescale the preview image in accordance to your preview frame size for a proper capture. If you do not scale the preview image to match with your frame size, it may result in:

    • Late capture - It can lead to increase in scan time.
    • Failure to capture - It can be difficult to capture the IRIS image for wider or larger faces.

    The following code illustrates how to scale the image:

    canvas.scale(canvas.getWidth() * 1.0f / Imgwidth, canvas.getHeight() * 1.0f / Imgheight);  
    /*where Imgwidth & Imgheight is width & height of the preview image received in the callback.*/ 
    
  4. If your device is behind a firewall, ensure the following Samsung license servers are whitelisted:
    • gslb.secb2b.com:443
    • eu-elm.secb2b.com:443
    • eu-prod-klm.secb2b.com:443

    When you activate Samsung India Identity SDK license, devices periodically check their licenses a few times a week with the license server.

For agent device operators:

The following are the guidelines/recommendations for agents who scan the IRIS image of customers:

  1. When the app is launched for the first time, a (KLMS Agent) privacy policy agreement is prompted. The operator must confirm (accept) to the privacy policy to use the app.
  2. It is recommended to maintain a distance of 20 ~ 25 cm (approximately) between the device and user's eye to capture the IRIS data properly.

  3. Align the line of capture with the user’s eye properly to get the best IRIS capture quickly.

  4. For an optimal capture, it is recommended to remove the eye glasses (if any) and open the eyes wide at the time of IRIS scan.