Service configuration#
Configure Selinux and Firewall so that they do not block the service.
Set LUNA PASS configuration parameters via Luna Configurator service (Table 10). Enter the connection parameters to lunapassvideo in the LUNAPASS_REDIS_DB_ADDRESS
section.
Table 10. LUNA PASS configuration parameters
Parameter |
Description |
---|---|
LUNA PASS API configuration parameters |
|
env |
Mode:
For more information see the "Logging and debugging" section Default: |
Configuration parameters LUNA_PASS.JWT |
|
algorithm |
Successful frame encryption algorithm Default: |
key |
Successful frame encryption secret Default: |
Session parameters |
|
max_attempts |
Maximum number of frames received within 1 session. If the value is exceeded, the current frame is sent as is and the connection is terminated. If no value is present, the frames are checked until there is a successfully passed Liveness Default: |
max_liveness_attempts |
The maximum number of frames that have reached the Liveness estimation. If the value is exceeded, the current frame is sent as is and the connection is terminated. If no value is present, the frames are checked until there is a successfully passed Liveness Default: |
aggregate_frames |
Number of frames to aggregate. Must be at least 1 Default: |
accept_one_eye_open |
Allow one eye to be checked for openness:
Default: |
previous_face_similarity |
Similarity threshold. If the similarity value is below the threshold, then it is considered that the frames have different faces and the session is terminated Default: |
multiface_policy |
Policy for selecting a person to check Liveness. Available values:
Default: |
Parameters for face recognition zone ROI |
|
center_x |
The center of the ROI zone along the X axis Default: The
Default: |
center_y |
The center of the ROI zone along the Y axis Default: The
Default: |
width |
The width of the ROI zone Default: The
Default: |
height |
Height of the ROI zone Default: The
Default: |
Face estimation thresholds |
|
blur |
Photo blurring Default: |
light |
Backlighting of the photo image Default: |
dark |
Darkening of the photo image Default: |
illumination |
Uniformity of image illumination, 0 – uniform, 1 – there are overexposures Default: |
specularity |
Glare on the image, 0 – no glare, 1 – there are glare Default: |
face_width |
Face frame width Default: |
face_height |
Face frame height Default: |
yaw |
Rotation around the vertical axis of the head Default: |
pitch |
Rotation around the transverse axis of the head Default: |
roll |
Rotation around the longitudinal axis of the head Default: |
mouth |
Required accuracy of mouth status assessment Default: |
glasses |
Availability of glasses. Available values:
Default: |
deepfake |
Required accuracy of the Deepfake estimation. Comment out the line the corresponding threshold to disable checking Default: |
liveness |
Thresholds for the OneShot Liveness test result at which a person will be considered «alive» Default: |
Active Liveness parameters |
|
is_enabled |
Active Liveness Default: |
cooldown_frames_count |
Minimum number of frames after passing active Liveness Default: |
interaction_list |
Used checks:
Default: [ |
interaction_count |
Number of user interactions to use. The maximum number
must not exceed the number of checks specified in Default: |
interaction_order |
The order of interaction of checks:
Default: |
yaw_start_deg |
Initial angle of rotation at which it is possible to begin interaction with head turns Default: |
yaw_threshold_deg |
Threshold angle of rotation at which interaction on head turns is considered completed Default: |
pitch_start_deg |
The initial head tilt angle at which it is possible to begin head tilt interaction Default: |
pitch_threshold_deg |
The head tilt angle threshold at which the head tilt interaction is considered completed Default: |
Virtual Camera Checker parameter |
|
is_enabled |
Check frames for use of a virtual camera Default: |
File Logger parameters |
|
is_enabled |
Saves all incoming photos and the results of their estimation within one session to a file Default: |
path |
Path for saving file logs Default: |
Video Redis parameters* |
|
is_enabled |
Stitching frames together to create a video and sending session frames to Redis Default: |
LUNAPASS_VIDEO settings |
|
codec |
The codec used for video encoding Default: |
frames_limit |
Limit the maximum number of frames in a video:
Default: |
expires |
Number of seconds for Redis to store frames that were not used in the video.
The information is erased after the Default: |
result_ttl |
How long Redis stores information about successful tasks and their По умолчанию: |
session_timeout |
Number of seconds to start building video after session termination if no bestshot is available Default: |
LUNA PASS API logger settings |
|
log_level |
Sets the level of debug printing, by priority: "ERROR", "WARNING", "INFO", "DEBUG" Default: |
folder_with_logs |
The folder where the logs are stored (the relative path starts from the directory with the application) Default: |
max_log_file_size |
Maximum log file size in MB before rotation (0 - do not use rotation) Default: |
log_time |
The time format used in log entries: "LOCAL" or "UTC" Default: |
log_to_stdout |
Enables you to send the log to standard output (stdout). Two options are available - "true" or "false" Default: |
log_to_file |
Enables you to send the log to a file. Two options are available - "true" or "false" Default: |
multiline_stack_trace |
Enables or disables multi-line traces in logs. Two options are available - "true" or "false" Default: |
format |
Log format Default: |
LUNAPASS_API_HTTP settings |
|
request_timeout |
The amount of time between when a new open TCP connection is passed to the server (in seconds) Default: |
response_timeout |
The amount of time between when the server passes an HTTP request to the application and when the HTTP response is sent to the client (in seconds) Default: |
request_max_size |
The maximum request size in bytes Default: |
keep_alive_timeout |
HTTP keep-alive timeout Default: |