Commit a8ecdabb by yhb

1

parent 29a54b5f
channel1:
annotation_count: 1
annotation_count: 2
areas:
area_1:
height: 20mm
name: 通道1_区域1
area_2:
height: 20mm
name: 通道1_区域2
boxes:
- - 855
- 737
- 192
- - 900
- 84
- 96
- - 833
- 854
- 96
fixed_bottoms:
- 813
- 122
- 892
fixed_tops:
- 660
last_updated: '2025-11-29 17:01:13'
- 45
- 815
last_updated: '2025-12-01 10:45:27'
channel2:
annotation_count: 1
areas:
......
......@@ -10,7 +10,7 @@ address_list: 'rtsp://admin:cei345678@192.168.0.121:8000/stream1
batch_processing_enabled: false
channel1:
name: 通道1
address: rtsp://admin:cei345678@192.168.0.127:8000/stream1
address: rtsp://admin:cei345678@192.168.2.126:8000/stream1
channel1_model_path: database/model/detection_model/bestmodel/best.dat
channel2:
name: 通道2
......
......@@ -1644,12 +1644,17 @@ class AnnotationWidget(QtWidgets.QWidget):
cy = (self.box_start[1] + y2) // 2
size = length
# 调用 add_box 方法添加检测框
# 调用 add_box 方法添加检测框(会自动添加顶部和底部点)
self.annotation_engine.add_box(cx, cy, size)
# 切换到标注顶部点模式(先标顶点)
self.annotation_engine.step = 2 # step=2 是标注顶部点模式
# 保持画框模式,允许继续添加
self.annotation_engine.step = 0
# 确保区域配置存在
box_index = len(self.annotation_engine.boxes) - 1
self._ensureAreaConfig(box_index)
# 更新显示
self._updateDisplay()
def _onMouseDoubleClick(self, event):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment