Skip to content

Using aggregation#

To eliminate occasional neural network faults when determining eye status and the presence of glasses to get the best shot, you can use aggregation.

How it works#

LUNA ID collects 10 frames and checks that none of them have glasses. Also, there should be no more than two frames with closed eyes among these frames. If these conditions are met, LUNA ID considers such a frame to be the best shot.

If one of the frames has glasses, it cannot be considered the best shot and the "Take off the glasses" error message is sent.

If 10 frames do not have any glasses, but there are more than two with closed eyes, the "Eyes closed" error message is sent.

Enable aggregation#

In LUNA ID for Android#

To enable aggregation, set the LunaConfig.aggregationEnabled parameter to true.

The default value is true.

We recommend that you disable aggregation by setting LunaConfig.aggregationEnabled parameter to false for POS terminals. This will significantly increase the processing speed while reducing the load on the system.

In LUNA ID for iOS#

To enable aggregation, do either of the following:

  • In your code, set the LCLunaConfiguration.glassesCheckEnabled and LCLunaConfiguration.aggregationEnabled properties to true.
  • In the LCLunaConfiguration.plist configuration file, set glassesCheckEnabled and aggregationEnabled parameters to true.

By default, glassesCheckEnabled and aggregationEnabled are set to false.