Skip to content

Bulk editing LUNA ID parameters#

This topic applies to LUNA ID for iOS only.

In LUNA ID, you can either specify various parameters directly in your code or do this in the LCLunaConfiguration.plist configuration file.

Note: You should use either of the approaches as changing parameter values in your code will not automatically change them in the LCLunaConfiguration.plist file.

Using the the LCLunaConfiguration.plist file allows you to bulk edit all the LUNA ID parameters in one place. The file is located in the following directory:

".\luna-id-sdk_ios_v.X.X.X\frameworks\LunaCore.xcframework\ios-arm64\LunaCore.framework\LCLunaConfiguration.plist"

To apply the parameters, you need to pass them to the LCLunaConfiguration object:

LCLunaConfiguration(plistFromDocuments: plist)

The parameters listed in LCLunaConfiguration.plist are as follows:

LCLunaConfiguration section#

Parameter Default value Description
kGlassesCheckEnabledKey false Specifies whether the eye occlusion estimation is enabled.
kOCREnabledKey false Specifies whether OCR (Optical Character Recognition) is enabled.
kInteractionEnabledIDKey true Specifies whether Dynamic Liveness interactions with a camera are enabled.
kSaveOnlyFaceVideo false Specifies whether to save video files only with a face detected.
kTrackFaceIdentity false Specifies whether face identity tracking is enabled.
kOccludeCheckKey true Specifies whether the face occlusion estimation is enabled.
kStartDelayKey 0 Specifies a timeout, in seconds, before face recognition begins.
kLicensePlistFileKey vllicense.plist Specifies the license file.

LCBestShotConfiguration section#

Parameter Default value Description
kBorderDistanceKey 10 Specifies the distance from the frame edges and is based on the face detection bounding box size estimation.
kMinDetSizeKey 200 Specifies a bounding box size.

LCInteractionsConfig section#

Parameter Default value Description
kStepsNumberKey 3 Specifies a number of Dynamic Liveness interactions to be performed.
kInteractionTimeoutKey 5 Specifies a timeout for every Dynamic Liveness interaction to be performed in a random sequence.
kTimeoutBetweenInteractionKey 0 Specifies a timeout between Dynamic Liveness interactions.

LCEstimationThreshold section#

Parameter Default value Description
kHeadPitch 25 Specifies the head rotation along the X axis.
kHeadYaw 25 Specifies the head rotation along the Y axis.
kHeadRoll 25 Specifies the head rotation along the Z axis.
kAgs 0,5 Specifies the source image score for further descriptor extraction and matching.