BodyBalanceEvaluation/backend/config.ini

109 lines
2.3 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[APP]
name = Body Balance Evaluation System
version = 1.5.0
debug = True
log_level = INFO
[SERVER]
host = 0.0.0.0
port = 5000
cors_origins = *
[DATABASE]
path = D:/BodyCheck/data/body_balance.db
backup_interval = 24
max_backups = 7
[FILEPATH]
path = D:/BodyCheck/file/
[CAMERA1]
enabled = True
device_index = 1
width = 1280
height = 720
fps = 30
buffer_size = 1
fourcc = MJPG
backend = directshow
[CAMERA2]
enabled = True
device_index = 3
width = 1280
height = 720
fps = 30
buffer_size = 1
fourcc = MJPG
backend = directshow
[FEMTOBOLT]
enabled = True
algorithm_type = plt
color_resolution = 1080P
depth_mode = NFOV_2X2BINNED
camera_fps = 20
depth_range_min = 1200
depth_range_max = 1600
fps = 15
synchronized_images_only = False
[DEVICES]
imu_enabled = True
imu_device_type = ble
imu_port = COM9
imu_mac_address = ef:3c:1a:0a:fe:02
imu_baudrate = 9600
pressure_enabled = True
pressure_device_type = real
pressure_use_mock = False
pressure_port = COM5
pressure_baudrate = 115200
[SYSTEM]
log_level = INFO
max_cache_size = 10
cache_timeout = 5.0
[DETECTION]
default_duration = 60
sampling_rate = 30
balance_threshold = 0.2
posture_threshold = 5.0
[DATA_PROCESSING]
filter_window = 5
outlier_threshold = 2.0
chart_dpi = 300
export_format = csv
[SECURITY]
secret_key = 79fcc4983d478c2ee672f3305d5e12c7c84fd1b58a18acb650e9f8125bfa805f
session_timeout = 3600
max_login_attempts = 5
[LICENSE]
path = D:/BodyCheck/license/license.json
public_key = D:/BodyCheck/license/license_public_key.pem
grace_days = 7
dev_mode = False
[SCREEN_RECORDING]
# 录屏策略ffmpeg外部进程录制或 threaded内部线程录制
strategy = ffmpeg
# ffmpeg可执行文件绝对路径Windows示例D:/BodyCheck/ffmpeg/bin/ffmpeg.exe
ffmpeg_path = D:/BodyCheck/ffmpeg/bin/ffmpeg.exe
# 编码器libx264CPU或 h264_nvencGPUCPU占用更低需显卡支持
ffmpeg_codec = libx264
# 编码预设ultrafastCPU更低、文件更大NVENC用 p1/p2 更快
ffmpeg_preset = ultrafast
# 编码线程数限制CPU占用按机器性能调整
ffmpeg_threads = 2
# B帧数量0可降低编码复杂度与CPU占用
ffmpeg_bframes = 0
# 关键帧间隔GOP单位数值越大CPU越低seek精度下降
ffmpeg_gop = 50
# 是否录制鼠标0关闭1开启
ffmpeg_draw_mouse = 0