v9.5: 實作標籤完全不重疊算法

- 新增 _calculate_lane_conflicts_v2() 分開返回標籤重疊和線穿框分數
- 修改泳道選擇算法,優先選擇無標籤重疊的泳道
- 兩階段搜尋:優先側別無可用泳道則嘗試另一側
- 增強日誌輸出,顯示標籤範圍和詳細衝突分數

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
beabigegg
2025-11-06 11:35:29 +08:00
commit 2d37d23bcf
83 changed files with 22971 additions and 0 deletions

42
run.bat Normal file
View File

@@ -0,0 +1,42 @@
@echo off
REM TimeLine Designer - Windows 啟動腳本
REM Version: 1.0.0
echo ========================================
echo TimeLine Designer 啟動中...
echo ========================================
echo.
REM 檢查 Python 是否安裝
python --version >nul 2>&1
if errorlevel 1 (
echo [錯誤] 找不到 Python請先安裝 Python 3.8+
pause
exit /b 1
)
REM 檢查虛擬環境
if not exist "venv" (
echo [資訊] 建立虛擬環境...
python -m venv venv
)
REM 啟動虛擬環境
call venv\Scripts\activate.bat
REM 安裝依賴(如果需要)
if not exist "venv\Lib\site-packages\fastapi" (
echo [資訊] 安裝依賴套件...
pip install -r requirements.txt
)
REM 啟動應用程式
echo [資訊] 啟動 TimeLine Designer...
python app.py
REM 結束
echo.
echo ========================================
echo TimeLine Designer 已關閉
echo ========================================
pause