@echo off REM ============================================================ REM A2b (14/08/2026) - do nghiem thu gate 4 lat A2b: bi tren ban REM metric gan MAU + SO theo BallID (worker gan `number` vao REM balls_init tu CUNG nguon mau voi overlay.mp4). REM Ban luu cua lan chay sinh so 14/08 (video_id c9fda71c...). REM REM Ly do chay (gate A2b.4, BRIEF 13/08 lat A2b): REM Cac JSON cu (A1/A2) KHONG mang so bi - balls_init chi co REM type/conf. Worker moi (commit 67aca97) chay identify_balls REM tren frame dau + dung bbox tang so da dung (RecordingModel), REM map qua cung homography bu do cao -> can chay lai VOD de co REM JSON mang number cho FE to mau + kiem mat doi chieu overlay. REM REM Can chay truoc: Redis + run_cv_worker.bat (code >= 67aca97) REM + run_app_queue.bat (port 8000). Video vao TAI DUNG file REM rack_5245_5805.mp4 (byte-for-byte cung input A1/A2). REM REM Do duoc 14/08 (14 cu, video_id c9fda71c1e354289936ceae1bfdd4011): REM Gate A2b.4 DAT - balls_init mang number o 13/14 cu (cu 8 chi REM co cue); khong trung so trong tung cu; kiem mat 3 cu REM that 1/5/13: so + mau bang metric == overlay.mp4 cung cu REM (ke ca cho BallID nhan nham bi cam->8 o cu 13: overlay REM A2 cu (Danh da nghiem thu) gan Y HET - han che mau da REM biet BG22, hai noi NHAT QUAN, khong phai bug adapter). REM Van no dung {7,8,9} nhu A2 - 0/11 cu that bi oan. REM BAT NGO (ghi HANDOFF): so analyze run moi LECH A2 o 131 o du REM cung input/model/nguong - analytic lech nho (v0 +-0.05, REM phi +-0.2 deg, bien cu +-1 frame; nghi YOLO GPU khong REM tat dinh giua hai lan boot worker), shotnet khuech dai REM (cu 1 phi 172.5->188.6; cu 13/14 lat follow->stun; RMSE REM 1146->258) - khop chu ky "phi_model bat on dinh theo REM nhieu input" BG32. So A2 (bd1ac59b) GIU nguyen lam mau REM doi chieu; run nay CHI dung cho gate 4, KHONG thay the. REM ============================================================ set PYTHONUTF8=1 REM 1) Upload vao Analyzer da cu (app + cv_worker phai dang chay): curl.exe -s -F "video=@D:\Khoa luan\poolcoach-rl\datasets\bb9_pilot\rack_a1\rack_5245_5805.mp4;type=video/mp4" -F "corners=[[527.5,869.7],[1380.1,864.0],[1232.3,278.5],[673.0,272.8]]" http://localhost:8000/api/analyzer/videos REM 2) Theo doi: GET http://localhost:8000/api/analyzer/shots?video=(id buoc 1) REM 3) Ket qua ben: poolcoach-rl\data\analyzer\(id)\ (JSON co number + overlay) pause