BodyBalanceEvaluation/backend/config.ini
zhengsl d91af11b7d 修复录屏0字节问题,支持压力板多厂家切换
- 录屏: 高DPI缩放导致奇数尺寸触发libx264编码失败,宽高取偶; ffmpeg stderr写入日志

- 压力板: 新增 pressure_manager_small.py 原厂家小压力板,与现有大压力板并存

- 打包: 新增 build_backend.ps1,更新 requirements_build.txt / config.ini

- 前端: Electron 本地化配置
2026-08-11 18:17:13 +08:00

120 lines
2.3 KiB
INI

[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]
enable = True
device_index = 0
width = 1280
height = 720
fps = 30
buffer_size = 1
fourcc = MJPG
backend = directshow
[CAMERA2]
enable = False
device_index = 2
width = 1280
height = 720
fps = 30
buffer_size = 1
fourcc = MJPG
backend = directshow
[FEMTOBOLT]
enable = False
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_enable = False
imu_use_mock = True
imu_ble_name = WT901BLE67
imu_mac_address = FA:E8:88:06:FE:F3
; pressure_enable = True
; pressure_use_mock = True
; pressure_port = COM3
; pressure_baudrate = 115200
pressure_enable = False
pressure_use_mock = True
pressure_source = shared_memory
pressure_shared_memory_name = x2_pressure
pressure_shared_memory_header_bytes = 72
pressure_shared_memory_rows = 288
pressure_shared_memory_cols = 64
pressure_shared_memory_dtype = float32
pressure_shared_memory_crop_rows = 0
pressure_shared_memory_low_percentile = 5
pressure_shared_memory_high_percentile = 98
pressure_shared_memory_gamma = 1.0
pressure_shared_memory_ema_alpha = 0.1
[REMOTE]
enable = False
port = COM16
baudrate = 115200
timeout = 0.1
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]
strategy = ffmpeg
ffmpeg_path = D:/BodyCheck/ffmpeg/bin/ffmpeg.exe
ffmpeg_codec = libx264
ffmpeg_preset = ultrafast
ffmpeg_threads = 2
ffmpeg_bframes = 0
ffmpeg_gop = 50
ffmpeg_draw_mouse = 0