Changing detection settings#
In LUNA ID for Android#
The LunaCore.aar file uses default detection settings. These settings are stored in the .conf files inside LunaCore.aar and you cannot change them directly. However, you can change them if you put the files of the same name in your app along the assets/data path.
For example, if you need to change the FaceEngine settings, then inside your app, where LunaCore.aar is connected as a dependency, you need to create the assets/data/faceengine.conf file, which will contain all the FaceEngine settings.
Your faceengine.conf must contain all the settings, not just the ones you want to change, because your file will completely overwrite all the settings contained in LunaCore.aar.
In LUNA ID for iOS#
To change detection settings, pass the required values for the parameters specified in the table below:
Function | Parameter | Description |
---|---|---|
LCLunaConfiguration → bestShotConfiguration → estimationThreshold |
headPitch |
Specifies the head rotation along the X axis. |
LCLunaConfiguration → bestShotConfiguration → estimationThreshold |
headYaw |
Specifies the head rotation along the Y axis. |
LCLunaConfiguration → bestShotConfiguration → estimationThreshold |
headRoll |
Specifies the head rotation along the Z axis. |
LCLunaConfiguration → bestShotConfiguration → estimationThreshold |
ags |
Specifies the source image score for further descriptor extraction and matching. |
LCLunaConfiguration → bestShotConfiguration |
borderDistance |
Specifies the distance from the frame edges and is based on the face detection bounding box size estimation. |
LCLunaConfiguration → bestShotConfiguration |
minDetSize |
Specifies a bounding box size. |
LCLunaConfiguration |
startDelay |
Specifies a timeout, in seconds, before face recognition begins. |