提交修改

This commit is contained in:
zhaozilong12 2025-07-31 17:53:09 +08:00
parent 2f68fae1b7
commit bb993cc08c
11 changed files with 431 additions and 4 deletions

View File

@ -80,8 +80,14 @@ def init_app():
os.makedirs('exports', exist_ok=True) os.makedirs('exports', exist_ok=True)
os.makedirs('videos', exist_ok=True) os.makedirs('videos', exist_ok=True)
# 从配置文件读取数据库路径
db_path = app_config.get('DATABASE', 'path', 'backend/data/body_balance.db')
# 确保数据库目录存在
db_dir = os.path.dirname(db_path)
os.makedirs(db_dir, exist_ok=True)
# 初始化数据库 # 初始化数据库
db_manager = DatabaseManager('data/body_balance.db') db_manager = DatabaseManager(db_path)
db_manager.init_database() db_manager.init_database()
# 初始化设备管理器 # 初始化设备管理器
@ -93,6 +99,9 @@ def init_app():
# 初始化数据处理器 # 初始化数据处理器
data_processor = DataProcessor() data_processor = DataProcessor()
# 初始化视频流管理器
video_stream_manager = VideoStreamManager(socketio)
logger.info('应用初始化完成') logger.info('应用初始化完成')
except Exception as e: except Exception as e:

View File

@ -5,7 +5,7 @@ debug = false
log_level = INFO log_level = INFO
[SERVER] [SERVER]
host = 0.0.0.0 host = 127.0.0.1
port = 5000 port = 5000
cors_origins = * cors_origins = *
@ -35,7 +35,11 @@ chart_dpi = 300
export_format = csv export_format = csv
[SECURITY] [SECURITY]
secret_key = 8914333c0adf239da5d7a992e90879e500ab19e9da0d2bc41c6d8ca97ab102e0 secret_key = 026efbf83a2fe101f168780740da86bf1c9260625458e6782738aa9cf18f8e37
session_timeout = 3600 session_timeout = 3600
max_login_attempts = 5 max_login_attempts = 5
[CAMERA]
rtsp_url = rtsp://admin:JY123456@192.168.1.61:554/Streaming/Channels/101

Binary file not shown.

View File

@ -921,7 +921,7 @@ class DatabaseManager:
fields.append('updated_at = CURRENT_TIMESTAMP') fields.append('updated_at = CURRENT_TIMESTAMP')
values.append(user_id) values.append(user_id)
sql = f'UPDATE users SET {', '.join(fields)} WHERE id = ?' sql = f"UPDATE users SET {', '.join(fields)} WHERE id = ?"
cursor.execute(sql, values) cursor.execute(sql, values)
conn.commit() conn.commit()

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 KiB

View File

@ -6764,3 +6764,417 @@ AssertionError: write() before start_response
2025-07-31 17:18:13,165 - device_manager - INFO - [device_manager.py:761] - 已推送 360 帧到编码队列,跳过率: 1/2 2025-07-31 17:18:13,165 - device_manager - INFO - [device_manager.py:761] - 已推送 360 帧到编码队列,跳过率: 1/2
2025-07-31 17:18:19,728 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 414.62MB,强制清理 2025-07-31 17:18:19,728 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 414.62MB,强制清理
2025-07-31 17:18:23,094 - device_manager - INFO - [device_manager.py:761] - 已推送 420 帧到编码队列,跳过率: 1/2 2025-07-31 17:18:23,094 - device_manager - INFO - [device_manager.py:761] - 已推送 420 帧到编码队列,跳过率: 1/2
2025-07-31 17:35:40,957 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:35:40,957 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:35:41,464 - __main__ - ERROR - [debug_server.py:110] - 服务器启动失败: f-string: expecting '}' (database.py, line 924)
Traceback (most recent call last):
File "D:\BodyBalanceEvaluation\debug_server.py", line 83, in start_debug_server
from backend.app import app, socketio, init_app
File "D:\BodyBalanceEvaluation\backend\app.py", line 28, in <module>
from database import DatabaseManager
File "D:\BodyBalanceEvaluation\backend\database.py", line 924
sql = f'UPDATE users SET {', '.join(fields)} WHERE id = ?'
^
SyntaxError: f-string: expecting '}'
2025-07-31 17:36:41,332 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:36:41,332 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:36:42,163 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:36:42,168 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:36:42,170 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:36:42,170 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:36:42,215 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:36:42,218 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:36:43,437 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:36:43,476 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:36:43,523 - database - INFO - [database.py:156] - 创建默认管理员账户: admin/admin123
2025-07-31 17:36:43,533 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:36:48,809 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:36:48,810 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:36:48,810 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:36:48,810 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:36:48,810 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:36:48,811 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:36:48,811 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:36:48,811 - backend.app - INFO - [app.py:96] - 应用初始化完成
2025-07-31 17:36:48,812 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:36:48,812 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:36:48,812 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:36:48,813 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:36:48,813 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:36:48,826 - werkzeug - INFO - [_internal.py:96] - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
2025-07-31 17:36:48,826 - werkzeug - INFO - [_internal.py:96] - Press CTRL+C to quit
2025-07-31 17:36:48,827 - werkzeug - INFO - [_internal.py:96] - * Restarting with stat
2025-07-31 17:36:48,893 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:36:48,894 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:36:49,688 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:36:49,692 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:36:49,694 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:36:49,694 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:36:49,739 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:36:49,742 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:36:50,892 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:36:50,927 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:36:50,929 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:36:56,346 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:36:56,346 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:36:56,346 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:36:56,347 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:36:56,347 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:36:56,347 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:36:56,347 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:36:56,348 - backend.app - INFO - [app.py:96] - 应用初始化完成
2025-07-31 17:36:56,348 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:36:56,348 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:36:56,348 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:36:56,348 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:36:56,348 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:36:56,353 - werkzeug - WARNING - [_internal.py:96] - * Debugger is active!
2025-07-31 17:36:56,357 - werkzeug - INFO - [_internal.py:96] - * Debugger PIN: 145-351-357
2025-07-31 17:37:47,987 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:37:47] "OPTIONS /api/auth/login HTTP/1.1" 200 -
2025-07-31 17:37:47,989 - database - INFO - [database.py:774] - 用户登录成功: admin
2025-07-31 17:37:47,989 - backend.app - INFO - [app.py:162] - 用户 admin 登录成功
2025-07-31 17:37:47,990 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:37:47] "POST /api/auth/login HTTP/1.1" 200 -
2025-07-31 17:38:00,470 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:38:00] "GET /api/auth/verify?_t=1753954680467 HTTP/1.1" 200 -
2025-07-31 17:38:00,521 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:38:00] "GET /api/patients?_t=1753954680516 HTTP/1.1" 200 -
2025-07-31 17:38:14,512 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:38:14] "GET /api/auth/verify?_t=1753954694509 HTTP/1.1" 200 -
2025-07-31 17:38:14,608 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:38:14] "GET /api/patients?_t=1753954694602 HTTP/1.1" 200 -
2025-07-31 17:40:23,292 - werkzeug - INFO - [_internal.py:96] - * Detected change in 'D:\\BodyBalanceEvaluation\\backend\\app.py', reloading
2025-07-31 17:40:23,652 - werkzeug - INFO - [_internal.py:96] - * Restarting with stat
2025-07-31 17:40:23,717 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:40:23,718 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:40:24,827 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:40:24,831 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:40:24,833 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:40:24,833 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:40:24,882 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:40:24,885 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:40:26,604 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:40:26,658 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:40:26,709 - database - INFO - [database.py:156] - 创建默认管理员账户: admin/admin123
2025-07-31 17:40:26,720 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:40:35,639 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:40:35,639 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:40:35,639 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:40:35,640 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:40:35,640 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:40:35,641 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:40:35,642 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:40:35,642 - backend.app - INFO - [app.py:102] - 应用初始化完成
2025-07-31 17:40:35,642 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:40:35,643 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:40:35,643 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:40:35,643 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:40:35,644 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:40:35,652 - werkzeug - WARNING - [_internal.py:96] - * Debugger is active!
2025-07-31 17:40:35,661 - werkzeug - INFO - [_internal.py:96] - * Debugger PIN: 145-351-357
2025-07-31 17:41:15,354 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:41:15,355 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:41:16,373 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:41:16,378 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:41:16,380 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:41:16,380 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:41:16,441 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:41:16,445 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:41:17,979 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:41:18,029 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:41:18,031 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:41:25,767 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:41:25,768 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:41:25,768 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:41:25,768 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:41:25,769 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:41:25,769 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:41:25,769 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:41:25,770 - backend.app - INFO - [app.py:102] - 应用初始化完成
2025-07-31 17:41:25,770 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:41:25,770 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:41:25,771 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:41:25,771 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:41:25,771 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:41:25,791 - werkzeug - INFO - [_internal.py:96] - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
2025-07-31 17:41:25,792 - werkzeug - INFO - [_internal.py:96] - Press CTRL+C to quit
2025-07-31 17:41:25,792 - werkzeug - INFO - [_internal.py:96] - * Restarting with stat
2025-07-31 17:41:25,875 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:41:25,876 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:41:26,963 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:41:26,969 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:41:26,971 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:41:26,971 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:41:27,032 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:41:27,037 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:41:28,636 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:41:28,694 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:41:28,696 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:41:37,131 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:41:37,132 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:41:37,132 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:41:37,132 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:41:37,133 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:41:37,133 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:41:37,134 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:41:37,134 - backend.app - INFO - [app.py:102] - 应用初始化完成
2025-07-31 17:41:37,134 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:41:37,135 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:41:37,135 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:41:37,136 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:41:37,136 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:41:37,145 - werkzeug - WARNING - [_internal.py:96] - * Debugger is active!
2025-07-31 17:41:37,155 - werkzeug - INFO - [_internal.py:96] - * Debugger PIN: 145-351-357
2025-07-31 17:41:51,951 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:41:51] "GET /api/auth/verify?_t=1753954911945 HTTP/1.1" 200 -
2025-07-31 17:41:52,198 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:41:52] "GET /api/patients?_t=1753954912178 HTTP/1.1" 200 -
2025-07-31 17:41:58,547 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:41:58] "POST /api/auth/logout HTTP/1.1" 200 -
2025-07-31 17:42:02,581 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:02] "OPTIONS /api/auth/login HTTP/1.1" 200 -
2025-07-31 17:42:02,587 - database - INFO - [database.py:774] - 用户登录成功: admin
2025-07-31 17:42:02,587 - backend.app - INFO - [app.py:168] - 用户 admin 登录成功
2025-07-31 17:42:02,589 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:02] "POST /api/auth/login HTTP/1.1" 200 -
2025-07-31 17:42:07,647 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:07] "GET /api/auth/verify?_t=1753954927642 HTTP/1.1" 200 -
2025-07-31 17:42:07,870 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:07] "GET /api/patients?_t=1753954927858 HTTP/1.1" 200 -
2025-07-31 17:42:19,700 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:19] "GET /api/auth/verify?_t=1753954939697 HTTP/1.1" 200 -
2025-07-31 17:42:20,042 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:20] "GET /api/patients/0002 HTTP/1.1" 200 -
2025-07-31 17:42:20,048 - backend.app - INFO - [app.py:981] - 客户端连接: CvCARQMvxWuFNGK-AAAB
2025-07-31 17:42:20,052 - backend.app - INFO - [app.py:951] - 收到start_rtsp事件客户端ID: CvCARQMvxWuFNGK-AAAB, 数据: {}
2025-07-31 17:42:44,866 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:44] "GET /api/auth/verify?_t=1753954964860 HTTP/1.1" 200 -
2025-07-31 17:42:44,906 - backend.app - INFO - [app.py:966] - 收到stop_rtsp事件客户端ID: CvCARQMvxWuFNGK-AAAB, 数据: {}
2025-07-31 17:42:44,917 - backend.app - INFO - [app.py:986] - 客户端断开连接: CvCARQMvxWuFNGK-AAAB
2025-07-31 17:42:44,925 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:44] "GET /api/patients?_t=1753954964916 HTTP/1.1" 200 -
2025-07-31 17:42:44,944 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:44] "GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 500 -
2025-07-31 17:42:44,950 - werkzeug - ERROR - [_internal.py:96] - Error on request:
Traceback (most recent call last):
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 362, in run_wsgi
execute(self.server.app)
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 328, in execute
write(b"")
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 253, in write
assert status_set is not None, "write() before start_response"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: write() before start_response
2025-07-31 17:42:53,237 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:53] "GET /api/auth/verify?_t=1753954973233 HTTP/1.1" 200 -
2025-07-31 17:42:53,278 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:42:53] "GET /api/patients/0002 HTTP/1.1" 200 -
2025-07-31 17:42:53,590 - backend.app - INFO - [app.py:981] - 客户端连接: nr7rs3uoRm9oX_etAAAD
2025-07-31 17:42:53,597 - backend.app - INFO - [app.py:951] - 收到start_rtsp事件客户端ID: nr7rs3uoRm9oX_etAAAD, 数据: {}
2025-07-31 17:44:26,928 - werkzeug - INFO - [_internal.py:96] - * Detected change in 'D:\\BodyBalanceEvaluation\\backend\\app.py', reloading
2025-07-31 17:44:27,990 - werkzeug - INFO - [_internal.py:96] - * Restarting with stat
2025-07-31 17:44:28,197 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:44:28,197 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:44:29,721 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:44:29,726 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:44:29,729 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:44:29,730 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:44:29,872 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:44:29,877 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:44:31,578 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:44:31,621 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:44:31,623 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:44:38,623 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:44:38,624 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:44:38,624 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:44:38,624 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:44:38,625 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:44:38,625 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:44:38,625 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:44:38,626 - device_manager - INFO - [device_manager.py:521] - RTSP配置加载完成: None
2025-07-31 17:44:38,627 - backend.app - INFO - [app.py:105] - 应用初始化完成
2025-07-31 17:44:38,627 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:44:38,627 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:44:38,627 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:44:38,627 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:44:38,628 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:44:38,633 - werkzeug - WARNING - [_internal.py:96] - * Debugger is active!
2025-07-31 17:44:38,638 - werkzeug - INFO - [_internal.py:96] - * Debugger PIN: 145-351-357
2025-07-31 17:44:41,702 - backend.app - INFO - [app.py:984] - 客户端连接: vXUgjRq7J9U4Xl6EAAAC
2025-07-31 17:44:41,706 - backend.app - INFO - [app.py:954] - 收到start_rtsp事件客户端ID: vXUgjRq7J9U4Xl6EAAAC, 数据: {}
2025-07-31 17:44:41,706 - device_manager - ERROR - [device_manager.py:786] - RTSP URL未配置
2025-07-31 17:45:11,296 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:45:11] "GET /api/auth/verify?_t=1753955111263 HTTP/1.1" 200 -
2025-07-31 17:45:11,349 - backend.app - INFO - [app.py:969] - 收到stop_rtsp事件客户端ID: vXUgjRq7J9U4Xl6EAAAC, 数据: {}
2025-07-31 17:45:11,350 - backend.app - INFO - [app.py:989] - 客户端断开连接: vXUgjRq7J9U4Xl6EAAAC
2025-07-31 17:45:11,351 - device_manager - INFO - [device_manager.py:805] - RTSP推流已停止
2025-07-31 17:45:11,365 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:45:11] "GET /api/patients?_t=1753955111342 HTTP/1.1" 200 -
2025-07-31 17:45:11,375 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:45:11] "GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 500 -
2025-07-31 17:45:11,378 - werkzeug - ERROR - [_internal.py:96] - Error on request:
Traceback (most recent call last):
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 362, in run_wsgi
execute(self.server.app)
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 328, in execute
write(b"")
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 253, in write
assert status_set is not None, "write() before start_response"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: write() before start_response
2025-07-31 17:45:13,642 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:45:13] "GET /api/auth/verify?_t=1753955113639 HTTP/1.1" 200 -
2025-07-31 17:45:13,964 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:45:13] "GET /api/patients/0002 HTTP/1.1" 200 -
2025-07-31 17:45:13,965 - backend.app - INFO - [app.py:984] - 客户端连接: PTqpXJU1rC12fns1AAAE
2025-07-31 17:45:13,968 - backend.app - INFO - [app.py:954] - 收到start_rtsp事件客户端ID: PTqpXJU1rC12fns1AAAE, 数据: {}
2025-07-31 17:45:13,968 - device_manager - ERROR - [device_manager.py:786] - RTSP URL未配置
2025-07-31 17:48:26,424 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:26] "GET /api/auth/verify?_t=1753955306417 HTTP/1.1" 200 -
2025-07-31 17:48:26,442 - backend.app - INFO - [app.py:969] - 收到stop_rtsp事件客户端ID: PTqpXJU1rC12fns1AAAE, 数据: {}
2025-07-31 17:48:26,443 - device_manager - INFO - [device_manager.py:805] - RTSP推流已停止
2025-07-31 17:48:26,450 - backend.app - INFO - [app.py:989] - 客户端断开连接: PTqpXJU1rC12fns1AAAE
2025-07-31 17:48:26,456 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:26] "GET /api/patients?_t=1753955306449 HTTP/1.1" 200 -
2025-07-31 17:48:26,469 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:26] "GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 500 -
2025-07-31 17:48:26,475 - werkzeug - ERROR - [_internal.py:96] - Error on request:
Traceback (most recent call last):
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 362, in run_wsgi
execute(self.server.app)
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 328, in execute
write(b"")
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 253, in write
assert status_set is not None, "write() before start_response"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: write() before start_response
2025-07-31 17:48:29,762 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:29] "GET /api/auth/verify?_t=1753955309760 HTTP/1.1" 200 -
2025-07-31 17:48:30,095 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:30] "GET /api/patients/0001 HTTP/1.1" 200 -
2025-07-31 17:48:30,100 - backend.app - INFO - [app.py:984] - 客户端连接: BmtJ1XsaswKf3vU-AAAG
2025-07-31 17:48:30,104 - backend.app - INFO - [app.py:954] - 收到start_rtsp事件客户端ID: BmtJ1XsaswKf3vU-AAAG, 数据: {}
2025-07-31 17:48:30,105 - device_manager - ERROR - [device_manager.py:786] - RTSP URL未配置
2025-07-31 17:48:35,756 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:48:35,757 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:48:36,645 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:48:36,649 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:48:36,650 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:48:36,650 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:48:36,706 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:48:36,709 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:48:37,812 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:48:37,852 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:48:37,853 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:48:43,073 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:48:43,074 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:48:43,074 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:48:43,074 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:48:43,074 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:48:43,075 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:48:43,075 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:48:43,076 - device_manager - INFO - [device_manager.py:521] - RTSP配置加载完成: rtsp://admin:JY123456@192.168.1.61:554/Streaming/Channels/101
2025-07-31 17:48:43,076 - backend.app - INFO - [app.py:105] - 应用初始化完成
2025-07-31 17:48:43,076 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:48:43,076 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:48:43,076 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:48:43,077 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:48:43,077 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:48:43,089 - werkzeug - INFO - [_internal.py:96] - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
2025-07-31 17:48:43,090 - werkzeug - INFO - [_internal.py:96] - Press CTRL+C to quit
2025-07-31 17:48:43,090 - werkzeug - INFO - [_internal.py:96] - * Restarting with stat
2025-07-31 17:48:43,153 - __main__ - INFO - [debug_server.py:45] - 调试日志已启用
2025-07-31 17:48:43,154 - __main__ - INFO - [debug_server.py:69] - 调试环境检查通过
2025-07-31 17:48:43,994 - matplotlib - DEBUG - [__init__.py:350] - matplotlib data path: D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\matplotlib\mpl-data
2025-07-31 17:48:44,000 - matplotlib - DEBUG - [__init__.py:350] - CONFIGDIR=C:\Users\abc\.matplotlib
2025-07-31 17:48:44,001 - matplotlib - DEBUG - [__init__.py:1511] - interactive is False
2025-07-31 17:48:44,002 - matplotlib - DEBUG - [__init__.py:1512] - platform is win32
2025-07-31 17:48:44,048 - matplotlib - DEBUG - [__init__.py:350] - CACHEDIR=C:\Users\abc\.matplotlib
2025-07-31 17:48:44,053 - matplotlib.font_manager - DEBUG - [font_manager.py:1574] - Using fontManager instance from C:\Users\abc\.matplotlib\fontlist-v330.json
2025-07-31 17:48:45,307 - utils - INFO - [utils.py:35] - 配置文件已加载: config.ini
2025-07-31 17:48:45,345 - __main__ - INFO - [debug_server.py:86] - 初始化应用...
2025-07-31 17:48:45,347 - database - INFO - [database.py:159] - 数据库初始化完成
2025-07-31 17:48:50,502 - device_manager - INFO - [device_manager.py:68] - 摄像头初始化成功
2025-07-31 17:48:50,503 - device_manager - INFO - [device_manager.py:83] - IMU传感器初始化成功模拟
2025-07-31 17:48:50,503 - device_manager - INFO - [device_manager.py:95] - 压力传感器初始化成功(模拟)
2025-07-31 17:48:50,503 - device_manager - INFO - [device_manager.py:52] - 设备初始化完成
2025-07-31 17:48:50,504 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:48:50,504 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:48:50,504 - data_processor - INFO - [data_processor.py:47] - 数据处理器初始化完成
2025-07-31 17:48:50,505 - device_manager - INFO - [device_manager.py:521] - RTSP配置加载完成: rtsp://admin:JY123456@192.168.1.61:554/Streaming/Channels/101
2025-07-31 17:48:50,505 - backend.app - INFO - [app.py:105] - 应用初始化完成
2025-07-31 17:48:50,505 - __main__ - INFO - [debug_server.py:90] - 启动调试服务器...
2025-07-31 17:48:50,505 - __main__ - INFO - [debug_server.py:91] - 调试模式已启用 - 可以在IDE中设置断点
2025-07-31 17:48:50,505 - __main__ - INFO - [debug_server.py:92] - 服务器地址: http://127.0.0.1:5000
2025-07-31 17:48:50,506 - __main__ - INFO - [debug_server.py:93] - 健康检查: http://127.0.0.1:5000/health
2025-07-31 17:48:50,506 - __main__ - INFO - [debug_server.py:94] - 按 Ctrl+C 停止服务器
2025-07-31 17:48:50,511 - werkzeug - WARNING - [_internal.py:96] - * Debugger is active!
2025-07-31 17:48:50,515 - werkzeug - INFO - [_internal.py:96] - * Debugger PIN: 145-351-357
2025-07-31 17:48:50,619 - backend.app - INFO - [app.py:984] - 客户端连接: SjR9RunfMrBXx9sRAAAB
2025-07-31 17:48:50,622 - backend.app - INFO - [app.py:954] - 收到start_rtsp事件客户端ID: SjR9RunfMrBXx9sRAAAB, 数据: {}
2025-07-31 17:48:50,624 - device_manager - INFO - [device_manager.py:789] - 启动RTSP线程URL: rtsp://admin:JY123456@192.168.1.61:554/Streaming/Channels/101
2025-07-31 17:48:50,626 - device_manager - INFO - [device_manager.py:651] - 开始生成RTSP帧URL: rtsp://admin:JY123456@192.168.1.61:554/Streaming/Channels/101
2025-07-31 17:48:50,626 - device_manager - INFO - [device_manager.py:794] - RTSP线程已启动
2025-07-31 17:48:51,885 - device_manager - INFO - [device_manager.py:668] - RTSP流已打开开始推送帧激进实时模式
2025-07-31 17:48:54,986 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:54] "GET /api/auth/verify?_t=1753955334983 HTTP/1.1" 200 -
2025-07-31 17:48:55,011 - backend.app - INFO - [app.py:969] - 收到stop_rtsp事件客户端ID: SjR9RunfMrBXx9sRAAAB, 数据: {}
2025-07-31 17:48:55,015 - device_manager - INFO - [device_manager.py:805] - RTSP推流已停止
2025-07-31 17:48:55,019 - backend.app - INFO - [app.py:989] - 客户端断开连接: SjR9RunfMrBXx9sRAAAB
2025-07-31 17:48:55,023 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:55] "GET /api/patients?_t=1753955335018 HTTP/1.1" 200 -
2025-07-31 17:48:55,043 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:55] "GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 500 -
2025-07-31 17:48:55,184 - device_manager - INFO - [device_manager.py:776] - RTSP推流结束总共推送了 20 帧
2025-07-31 17:48:55,186 - werkzeug - ERROR - [_internal.py:96] - Error on request:
Traceback (most recent call last):
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 362, in run_wsgi
execute(self.server.app)
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 328, in execute
write(b"")
File "D:\industrial_train_prediction\industrial_train_prediction\venv\Lib\site-packages\werkzeug\serving.py", line 253, in write
assert status_set is not None, "write() before start_response"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: write() before start_response
2025-07-31 17:48:59,915 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:48:59] "GET /api/auth/verify?_t=1753955339912 HTTP/1.1" 200 -
2025-07-31 17:49:00,243 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:00] "GET /api/patients/0002 HTTP/1.1" 200 -
2025-07-31 17:49:00,245 - backend.app - INFO - [app.py:984] - 客户端连接: 76XyHegSiV8nHHg2AAAD
2025-07-31 17:49:00,248 - backend.app - INFO - [app.py:954] - 收到start_rtsp事件客户端ID: 76XyHegSiV8nHHg2AAAD, 数据: {}
2025-07-31 17:49:00,248 - device_manager - INFO - [device_manager.py:789] - 启动RTSP线程URL: rtsp://admin:JY123456@192.168.1.61:554/Streaming/Channels/101
2025-07-31 17:49:00,248 - device_manager - INFO - [device_manager.py:651] - 开始生成RTSP帧URL: rtsp://admin:JY123456@192.168.1.61:554/Streaming/Channels/101
2025-07-31 17:49:00,249 - device_manager - INFO - [device_manager.py:794] - RTSP线程已启动
2025-07-31 17:49:01,624 - device_manager - INFO - [device_manager.py:668] - RTSP流已打开开始推送帧激进实时模式
2025-07-31 17:49:11,531 - device_manager - INFO - [device_manager.py:761] - 已推送 60 帧到编码队列,跳过率: 1/2
2025-07-31 17:49:13,928 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:13] "OPTIONS /api/detection/start HTTP/1.1" 200 -
2025-07-31 17:49:14,256 - database - INFO - [database.py:361] - 创建检测会话: 0496660d-b954-4f88-b2a0-b0e4e764190b
2025-07-31 17:49:14,256 - backend.app - INFO - [app.py:615] - 创建检测会话成功: 0496660d-b954-4f88-b2a0-b0e4e764190b, 患者ID: 0002
2025-07-31 17:49:14,257 - backend.app - INFO - [app.py:858] - 开始检测会话: 0496660d-b954-4f88-b2a0-b0e4e764190b
2025-07-31 17:49:14,257 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:14] "POST /api/detection/start HTTP/1.1" 200 -
2025-07-31 17:49:14,771 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 365.82MB,强制清理
2025-07-31 17:49:21,299 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:21] "OPTIONS /api/screenshots/save HTTP/1.1" 200 -
2025-07-31 17:49:21,320 - device_manager - INFO - [device_manager.py:761] - 已推送 120 帧到编码队列,跳过率: 1/2
2025-07-31 17:49:21,604 - detection_engine - INFO - [detection_engine.py:47] - 数据目录创建完成
2025-07-31 17:49:21,605 - detection_engine - INFO - [detection_engine.py:38] - 检测引擎初始化完成
2025-07-31 17:49:21,615 - detection_engine - INFO - [detection_engine.py:399] - 截图保存成功: D:\BodyBalanceEvaluation\data\patients\0002\0496660d-b954-4f88-b2a0-b0e4e764190b\screenshot_20250731_174921.jpg
2025-07-31 17:49:21,616 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:21] "POST /api/screenshots/save HTTP/1.1" 200 -
2025-07-31 17:49:28,248 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:28] "OPTIONS /api/detection/stop HTTP/1.1" 200 -
2025-07-31 17:49:28,576 - database - INFO - [database.py:389] - 更新会话状态: 0496660d-b954-4f88-b2a0-b0e4e764190b -> stopped
2025-07-31 17:49:28,576 - backend.app - INFO - [app.py:892] - 检测会话完成: 0496660d-b954-4f88-b2a0-b0e4e764190b
2025-07-31 17:49:28,587 - database - INFO - [database.py:389] - 更新会话状态: 0496660d-b954-4f88-b2a0-b0e4e764190b -> completed
2025-07-31 17:49:28,600 - database - INFO - [database.py:408] - 更新会话持续时间: 0496660d-b954-4f88-b2a0-b0e4e764190b -> 13秒
2025-07-31 17:49:28,600 - backend.app - INFO - [app.py:681] - 检测会话已停止: 0496660d-b954-4f88-b2a0-b0e4e764190b, 持续时间: 13秒
2025-07-31 17:49:28,601 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:28] "POST /api/detection/stop HTTP/1.1" 200 -
2025-07-31 17:49:28,605 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:28] "OPTIONS /api/recordings/save HTTP/1.1" 200 -
2025-07-31 17:49:28,607 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:28] "OPTIONS /api/recordings/save HTTP/1.1" 200 -
2025-07-31 17:49:28,825 - detection_engine - INFO - [detection_engine.py:447] - 录像保存成功: D:\BodyBalanceEvaluation\data\patients\0002\0496660d-b954-4f88-b2a0-b0e4e764190b\recording_20250731_174928.mp4
2025-07-31 17:49:28,826 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:28] "POST /api/recordings/save HTTP/1.1" 200 -
2025-07-31 17:49:28,917 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:28] "OPTIONS /api/sessions/0496660d-b954-4f88-b2a0-b0e4e764190b/video-path HTTP/1.1" 200 -
2025-07-31 17:49:28,918 - detection_engine - INFO - [detection_engine.py:447] - 录像保存成功: D:\BodyBalanceEvaluation\data\patients\0002\0496660d-b954-4f88-b2a0-b0e4e764190b\recording_20250731_174928.mp4
2025-07-31 17:49:28,919 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:28] "POST /api/recordings/save HTTP/1.1" 200 -
2025-07-31 17:49:29,144 - database - INFO - [database.py:427] - 更新会话视频路径: 0496660d-b954-4f88-b2a0-b0e4e764190b -> D:\BodyBalanceEvaluation\data\patients\0002\0496660d-b954-4f88-b2a0-b0e4e764190b\recording_20250731_174928.mp4
2025-07-31 17:49:29,145 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:29] "PUT /api/sessions/0496660d-b954-4f88-b2a0-b0e4e764190b/video-path HTTP/1.1" 200 -
2025-07-31 17:49:29,227 - database - INFO - [database.py:427] - 更新会话视频路径: 0496660d-b954-4f88-b2a0-b0e4e764190b -> D:\BodyBalanceEvaluation\data\patients\0002\0496660d-b954-4f88-b2a0-b0e4e764190b\recording_20250731_174928.mp4
2025-07-31 17:49:29,228 - werkzeug - INFO - [_internal.py:96] - 127.0.0.1 - - [31/Jul/2025 17:49:29] "PUT /api/sessions/0496660d-b954-4f88-b2a0-b0e4e764190b/video-path HTTP/1.1" 200 -
2025-07-31 17:49:31,585 - device_manager - INFO - [device_manager.py:761] - 已推送 180 帧到编码队列,跳过率: 1/2
2025-07-31 17:49:31,586 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 405.12MB,强制清理
2025-07-31 17:49:41,518 - device_manager - INFO - [device_manager.py:761] - 已推送 240 帧到编码队列,跳过率: 1/2
2025-07-31 17:49:48,258 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 405.20MB,强制清理
2025-07-31 17:49:51,443 - device_manager - INFO - [device_manager.py:761] - 已推送 300 帧到编码队列,跳过率: 1/2
2025-07-31 17:50:01,247 - device_manager - INFO - [device_manager.py:761] - 已推送 360 帧到编码队列,跳过率: 1/2
2025-07-31 17:50:04,608 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 405.20MB,强制清理
2025-07-31 17:50:11,332 - device_manager - INFO - [device_manager.py:761] - 已推送 420 帧到编码队列,跳过率: 1/2
2025-07-31 17:50:21,129 - device_manager - INFO - [device_manager.py:761] - 已推送 480 帧到编码队列,跳过率: 1/2
2025-07-31 17:50:21,130 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 405.38MB,强制清理
2025-07-31 17:50:31,235 - device_manager - INFO - [device_manager.py:761] - 已推送 540 帧到编码队列,跳过率: 1/2
2025-07-31 17:50:37,625 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 405.84MB,强制清理
2025-07-31 17:50:41,007 - device_manager - INFO - [device_manager.py:761] - 已推送 600 帧到编码队列,跳过率: 1/2
2025-07-31 17:50:51,126 - device_manager - INFO - [device_manager.py:761] - 已推送 660 帧到编码队列,跳过率: 1/2
2025-07-31 17:50:54,306 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 410.39MB,强制清理
2025-07-31 17:51:01,036 - device_manager - INFO - [device_manager.py:761] - 已推送 720 帧到编码队列,跳过率: 1/2
2025-07-31 17:51:11,154 - device_manager - INFO - [device_manager.py:761] - 已推送 780 帧到编码队列,跳过率: 1/2
2025-07-31 17:51:11,155 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 410.37MB,强制清理
2025-07-31 17:51:21,104 - device_manager - INFO - [device_manager.py:761] - 已推送 840 帧到编码队列,跳过率: 1/2
2025-07-31 17:51:27,830 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 410.39MB,强制清理
2025-07-31 17:51:31,037 - device_manager - INFO - [device_manager.py:761] - 已推送 900 帧到编码队列,跳过率: 1/2
2025-07-31 17:51:41,055 - device_manager - INFO - [device_manager.py:761] - 已推送 960 帧到编码队列,跳过率: 1/2
2025-07-31 17:51:44,188 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 410.39MB,强制清理
2025-07-31 17:51:50,747 - device_manager - INFO - [device_manager.py:761] - 已推送 1020 帧到编码队列,跳过率: 1/2
2025-07-31 17:52:00,866 - device_manager - INFO - [device_manager.py:761] - 已推送 1080 帧到编码队列,跳过率: 1/2
2025-07-31 17:52:00,923 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 410.37MB,强制清理
2025-07-31 17:52:10,658 - device_manager - INFO - [device_manager.py:761] - 已推送 1140 帧到编码队列,跳过率: 1/2
2025-07-31 17:52:17,367 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 410.37MB,强制清理
2025-07-31 17:52:20,735 - device_manager - INFO - [device_manager.py:761] - 已推送 1200 帧到编码队列,跳过率: 1/2
2025-07-31 17:52:30,529 - device_manager - INFO - [device_manager.py:761] - 已推送 1260 帧到编码队列,跳过率: 1/2
2025-07-31 17:52:33,902 - device_manager - WARNING - [device_manager.py:543] - 内存使用过高: 410.38MB,强制清理
2025-07-31 17:52:40,326 - device_manager - INFO - [device_manager.py:761] - 已推送 1320 帧到编码队列,跳过率: 1/2