From 3ad6ec0adebc262a0130dbb0166bce90b5487c91 Mon Sep 17 00:00:00 2001 From: CaoWangrenbo Date: Tue, 28 Oct 2025 11:03:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=9B=91=E8=A7=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cam_web.py | 7 +- templates/view.html | 387 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 392 insertions(+), 2 deletions(-) create mode 100644 templates/view.html diff --git a/cam_web.py b/cam_web.py index 8532ffc..ab09b15 100644 --- a/cam_web.py +++ b/cam_web.py @@ -666,12 +666,15 @@ def regenerate_marked_images(image_id, detections, side): marked_right_img = draw_detections_on_image(img_right, detections, left_position=None, right_position=right_position) cv2.imwrite(right_marked_path, marked_right_img) -# 添加人工标注页面路由 @app.route('/manual-annotation') def manual_annotation(): - """人工标注页面""" + """标注页面""" return render_template('manual_annotation.html') +@app.route('/view') +def simple_view(): + """查看图片列表页面""" + return render_template('view.html') # --- SocketIO 事件处理程序 --- @socketio.event diff --git a/templates/view.html b/templates/view.html new file mode 100644 index 0000000..c94a3b5 --- /dev/null +++ b/templates/view.html @@ -0,0 +1,387 @@ + + + + + + Capture View + + + +

Capture View

+ +
Loading images...
+ +
+ + + + + + Auto Refresh (3s) +
+ + + + + + + + + + + + +
+ + + Left Marked ImageRight Marked Image
+ + + + \ No newline at end of file