From ee73aa80d82fdd4cc877d9f750d09d072f7c01ff Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Sun, 22 Mar 2026 14:13:28 +0700 Subject: [PATCH] =?UTF-8?q?Rename=20tabs:=20Camera,=20Calibration,=20Traje?= =?UTF-8?q?ctory=20=E2=80=94=20remove=20overlay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Tab 1: Camera (raw feeds) - Tab 2: Calibration (3D court + calibrate button, as before) - Tab 3: Trajectory (disabled until calibrated) - Remove unnecessary calibration overlay from Camera tab Co-Authored-By: Claude Opus 4.6 --- src/web/app.py | 2 +- src/web/templates/index.html | 156 ++++++++--------------------------- 2 files changed, 34 insertions(+), 124 deletions(-) diff --git a/src/web/app.py b/src/web/app.py index b99632f..d5ba1c3 100644 --- a/src/web/app.py +++ b/src/web/app.py @@ -30,7 +30,7 @@ state = { @app.route('/') @app.route('/') -def index(tab='detection'): +def index(tab='camera'): return render_template('index.html', active_tab=tab) diff --git a/src/web/templates/index.html b/src/web/templates/index.html index 92b3e15..cdb8936 100644 --- a/src/web/templates/index.html +++ b/src/web/templates/index.html @@ -293,59 +293,6 @@ .info-item .label { color: #666; } .info-item .value { color: #4ecca3; font-weight: 600; margin-left: 4px; } - /* Calibration overlay */ - .calibration-overlay { - position: fixed; - top: 48px; - left: 0; - right: 0; - bottom: 0; - z-index: 5; - background: rgba(10, 10, 26, 0.85); - display: flex; - align-items: center; - justify-content: center; - } - .calibration-overlay.hidden { display: none; } - .cal-overlay-content { - text-align: center; - max-width: 500px; - padding: 40px; - } - .cal-overlay-title { - font-size: 28px; - font-weight: 700; - color: #4ecca3; - margin-bottom: 16px; - } - .cal-overlay-desc { - font-size: 15px; - color: #999; - line-height: 1.6; - margin-bottom: 20px; - } - .cal-overlay-params { - display: flex; - gap: 20px; - justify-content: center; - font-size: 13px; - color: #666; - margin-bottom: 24px; - } - .cal-overlay-params b { color: #4ecca3; } - .btn-calibrate-big { - padding: 14px 48px; - background: #4ecca3; - color: #000; - border: none; - border-radius: 8px; - font-size: 18px; - font-weight: 700; - cursor: pointer; - transition: background 0.2s; - } - .btn-calibrate-big:hover { background: #3dbb92; } - .btn-calibrate-big:disabled { background: #333; color: #666; cursor: not-allowed; } @@ -353,8 +300,8 @@
- - + +
@@ -365,44 +312,25 @@
VAR: Close Call
- -
- -
-
-
Calibration Required
-
- Position cameras so that court lines are clearly visible, then press Calibrate. - The system will auto-detect court geometry and determine camera positions. -
-
- Sensor: IMX219 - HFOV: 128° - Stereo gap: ~6 cm -
- -
- Waiting for calibration... -
-
-
+ +
- Camera 1 + Camera 1
- Camera 0 + Camera 0
- -
+ +
-
+
-
Camera 1
-
Camera 0
+
Camera 1
+
Camera 0
Base Setup
Distance 1.0m
@@ -450,7 +378,7 @@