feat: 视觉记录系统 v1.0.0 - 摄像头定时拍照+智能分析+Web界面
This commit is contained in:
27
main.py
Normal file
27
main.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
视觉记录系统主入口
|
||||
"""
|
||||
import sys
|
||||
import os
|
||||
|
||||
# 确保路径正确
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from web.app import run_web
|
||||
from config import WEB_PORT
|
||||
|
||||
|
||||
def main():
|
||||
"""启动系统"""
|
||||
print("=" * 50)
|
||||
print("视觉记录系统启动")
|
||||
print("=" * 50)
|
||||
print(f"Web 端口: {WEB_PORT}")
|
||||
print(f"访问地址: http://localhost:{WEB_PORT}")
|
||||
print("=" * 50)
|
||||
|
||||
run_web()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user