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