From a488ee812f05cbb8b80dfab16e297684a676fcb4 Mon Sep 17 00:00:00 2001 From: zqc <835569504@qq.com> Date: Fri, 24 Apr 2026 10:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=88=9D=E7=89=88=E9=80=89?= =?UTF-8?q?=E7=82=B9=E6=8F=90=E5=8F=96=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_page_2/coordinate.html | 416 +++++++++++++++++++++++++++++++++++++ web_page_2/http_server.py | 3 + 2 files changed, 419 insertions(+) create mode 100644 web_page_2/coordinate.html diff --git a/web_page_2/coordinate.html b/web_page_2/coordinate.html new file mode 100644 index 0000000..8999298 --- /dev/null +++ b/web_page_2/coordinate.html @@ -0,0 +1,416 @@ + + + + + 坐标提取工具 + + + + + +
+
+ + + + + 点击 标记点   + Backspace 撤销   + Enter 完成当前组 + +
+
+ +
+ + + + + + 点击「上传图片」开始 +
+
+
+ +
+ + + + diff --git a/web_page_2/http_server.py b/web_page_2/http_server.py index 3ff8e5a..e17f559 100644 --- a/web_page_2/http_server.py +++ b/web_page_2/http_server.py @@ -48,6 +48,8 @@ class APIHandler(SimpleHTTPRequestHandler): elif path == '/' or path == '/index.html': # 默认访问使用 api=1 self.serve_file('index.html', query='api=1') + elif path == '/coords' or path == '/coordinate.html': + self.serve_file('coordinate.html') else: # 处理静态文件请求 # 移除开头的 / @@ -130,6 +132,7 @@ def run(): httpd = ThreadingHTTPServer(server_address, APIHandler) print(f'Server running on http://localhost:{port}') print(f'支持的接口: /, /api/1, /api/2, /api/3, /api/4, /api/5, /api/6, /api/7, /api/11-16') + print(f'坐标提取工具: /coords') print('按 Ctrl+C 停止服务器') try: