[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 common_items_path = D:/BodyCheck/data/common_items.json backup_interval = 24 max_backups = 7 [FILEPATH] path = D:/BodyCheck/file/ [CAMERA1] enabled = True device_index = 0 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 [REMOTE] port = COM6 baudrate = 115200 timeout = 0.1 enable = True strict_crc = False [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 # 编码器:libx264(CPU)或 h264_nvenc(GPU,CPU占用更低,需显卡支持) ffmpeg_codec = libx264 # 编码预设:ultrafast(CPU更低、文件更大);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