# config for ivsign ir live sdk

############# 算法配置 #############

# sdk授权字符串
license = HL-IC

# 摄像头名称，在授权范围内
cam_name = HX-FR600

# 活体模式，可选: rgb/rgb-ir/rgb-ir-depth
live_mode = rgb-ir

# 摄像头类型，可选：Default/Mobile
cam_class = Default

# 双眼距离范围（像素)
min_eye_dist = 30
max_eye_dist = 1000

# 人脸采集感兴趣区，以矩形区域像素坐标表示（以可见光为依据，其他图像会根据位置进行对应变换）
roi_left = 0
roi_top = 0
roi_width = 0
roi_height = 0

# 需要检测到睁开眼睛的数量
need_eyes = 0

# 是否需要鼻子部位完整
need_nose = false

# 是否需要嘴巴部位完整
need_mouth = false

# 是否允许多人脸出现在采集区域内，如果允许，则会采集面积的最大人脸
allow_many_face = true

# 人脸规范化图像中双眼距离占图像宽度的比例
crop_face_eye_dist = 0.28

# 人脸规范化图像中眼睛与图像顶部的距离占图像高度的比例
crop_face_eye_top = 0.45

# 人脸规范化是否需要将人脸角度进行校正
crop_face_rotate = false

# 人脸规范化图背景灰度：0-255，负数代表不进行背景处理
crop_face_background = 255

# 近红外摄像头成像位置相对于可见光的横向偏移（在两个图居中对齐的前提下）
ir_image_offset_x = 0

############# 摄像头配置 #############

# 可将光摄像头分辨率
rgb_camera_width = 640
rgb_camera_height = 480

# 近红外摄像头分辨率
ir_camera_width = 640
ir_camera_height = 480

############# 预览配置 #############

# 是否播放声音
play_audio = true

# 是否保持图像的原始宽高比
preview_keep_ratio = false

# 旋转角度，可选0/90/180/270
preview_rotation = 0

# 是否镜像
preview_mirror = true

# 是否显示红外图
preview_show_ir = true

# 是否显示红外人脸图
preview_show_ir_face = false

# 是否显示文字提示
preview_show_text = true

# 是否显示人脸框
preview_show_face = true

# 是否显示ROI
preview_show_roi = true

# 预览界面的蒙版图片
preview_mask =

# 提示文本、声音、蒙版图片的本地化设置
i18n_no_face = 未检测到人脸
i18n_no_face_sound = 未检测到人脸.wav
i18n_no_face_mask =
i18n_good_face = 活体检测通过
i18n_good_face_sound = 活体检测通过.wav
i18n_good_face_mask =
i18n_non_live = 活体分析失败
i18n_non_live_sound = 活体分析失败.wav
i18n_non_live_mask =
i18n_keep = 活体检测中
i18n_keep_sound = 活体检测中.wav
i18n_keep_mask =
i18n_near = 人脸过大
i18n_near_sound = 人脸过大.wav
i18n_near_mask =
i18n_far = 人脸过小
i18n_far_sound = 人脸过小.wav
i18n_far_mask =
i18n_tilted = 请摆正姿态
i18n_tilted_sound = 请摆正姿态.wav
i18n_tilted_mask =
i18n_side = 请将人脸居中
i18n_side_sound = 请将人脸居中.wav
i18n_side_mask =
i18n_moving = 请稳定姿态
i18n_moving_sound = 请稳定姿态.wav
i18n_moving_mask =
i18n_cam_pos = 请检查成像
i18n_cam_pos_sound = 请检查成像.wav
i18n_cam_pos_mask =
i18n_no_mouth = 嘴部被遮挡
i18n_no_mouth_sound = 嘴部被遮挡.wav
i18n_no_mouth_mask =
i18n_no_eye = 眼睛检测失败
i18n_no_eye_sound = 眼睛检测失败.wav
i18n_no_eye_mask =
i18n_no_nose = 鼻子被遮挡
i18n_no_nose_sound = 鼻子被遮挡.wav
i18n_no_nose_mask =
i18n_bad_light = 光线质量差
i18n_bad_light_sound =
i18n_bad_light_mask =
i18n_many_face = 检测到多人脸
i18n_many_face_sound =
i18n_many_face_mask =

############# 简易采集配置 #############

# 采集超时时间
timeout_seconds = 15

# 采集窗口标题
preview_window_title = 活体人脸采集

# 窗口显示位置，-1代表自动居中
preview_window_left = -1
preview_window_top = -1
preview_window_width = 640
preview_window_height = 480

############# 内部配置 #############

live_rgb_thresh = 0
live_ir_thresh = 0.3
mask3d_live_rgb_thresh = 0
mask3d_live_ir_thresh = 0
live_depth_thresh = 0.3
face_confirm_thresh = 0.5
fp5_occlusion_thresh = 0.8
live_ir_mask_thresh = 0.3
face_motion_thresh = 150
rgb_ir_eye_dist_diff = 0.1
rgb_ir_nose_diff = 1
face_pos_max_yaw = 35
face_pos_max_pitch = 35
face_pos_max_roll = 35
sound_delay_seconds = 2.0
min_frame_num_live = 1
min_frame_num_nonlive = 1
light_min_val = 60
light_max_val = 200
focus_enlarge = 2.0
use_large_mobile_model = false
debug_mode = false
