Skip to content

API changes made in LUNA ID for Android v.1.6.0 in comparison to v.1.5.1#

This topic lists API changes that were made in LUNA ID for Android v.1.6.0 in comparison to v.1.5.1.

The changes are:

  • Now, build.gradle does not require the following code block, so you need to remove it:
androidResources(
    ignoreAssetsPatterns.addAll(
    ...
    )
)
  • The BestShot class does not contain the pre-computed descriptor field. To get a descriptor of a particular version, use LunaUtils. For details, see Using descriptors.
  • Now, LunaID.init() does not accept the areDescriptorsEnabled parameter. For details, see Using descriptors.

In earlier versions of LUNA ID for Android, the main distribution package included all .plan files. You could exclude unnecessary .plan files by using ignoreAssetsPatterns. Now, the ai.visionlabs.lunaid:core:1.6.0 package includes only necessary .plan files. The files are:

  • FaceDet_v2_first_arm.plan
  • FaceDet_v2_second_arm.plan
  • FaceDet_v2_third_arm.plan
  • ags_angle_estimation_flwr_arm.plan
  • ags_v3_cpuplan
  • eye_status_estimation_flwr
  • eyes_estimation_flwr8
  • headpose_v3
  • model_subjective_quality_v1
  • model_subjective_quality_v2

Additional .plan files are available in the following distribution packages:

  • ai.visionlabs.lunaid:cnn59:1.6.0 - Contains the following .plan files used for descriptor generation from an image:
    • cnn59m_arm.plan
    • cnn59m_cpu.plan
  • ai.visionlabs.lunaid:cnn52:1.6.0 - Contains the following .plan files used for descriptor generation from an image:
    • cnn52m_cpu.plan
    • cnn52m_arm.plan

For details on using descriptors, see Using descriptors.