Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
Oil_Level_Recognition_System
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Oil_Level_Recognition_System
Commits
a8ecdabb
Commit
a8ecdabb
authored
Dec 01, 2025
by
yhb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
29a54b5f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
11 deletions
+24
-11
annotation_result.yaml
database/config/annotation_result.yaml
+15
-7
default_config.yaml
database/config/default_config.yaml
+1
-1
general_set.py
widgets/videopage/general_set.py
+8
-3
No files found.
database/config/annotation_result.yaml
View file @
a8ecdabb
channel1
:
channel1
:
annotation_count
:
1
annotation_count
:
2
areas
:
areas
:
area_1
:
area_1
:
height
:
20mm
height
:
20mm
name
:
通道1_区域1
name
:
通道1_区域1
area_2
:
height
:
20mm
name
:
通道1_区域2
boxes
:
boxes
:
-
-
855
-
-
900
-
737
-
84
-
192
-
96
-
-
833
-
854
-
96
fixed_bottoms
:
fixed_bottoms
:
-
813
-
122
-
892
fixed_tops
:
fixed_tops
:
-
660
-
45
last_updated
:
'
2025-11-29
17:01:13'
-
815
last_updated
:
'
2025-12-01
10:45:27'
channel2
:
channel2
:
annotation_count
:
1
annotation_count
:
1
areas
:
areas
:
...
...
database/config/default_config.yaml
View file @
a8ecdabb
...
@@ -10,7 +10,7 @@ address_list: 'rtsp://admin:cei345678@192.168.0.121:8000/stream1
...
@@ -10,7 +10,7 @@ address_list: 'rtsp://admin:cei345678@192.168.0.121:8000/stream1
batch_processing_enabled
:
false
batch_processing_enabled
:
false
channel1
:
channel1
:
name
:
通道1
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
channel1_model_path
:
database/model/detection_model/bestmodel/best.dat
channel2
:
channel2
:
name
:
通道2
name
:
通道2
...
...
widgets/videopage/general_set.py
View file @
a8ecdabb
...
@@ -1644,12 +1644,17 @@ class AnnotationWidget(QtWidgets.QWidget):
...
@@ -1644,12 +1644,17 @@ class AnnotationWidget(QtWidgets.QWidget):
cy
=
(
self
.
box_start
[
1
]
+
y2
)
//
2
cy
=
(
self
.
box_start
[
1
]
+
y2
)
//
2
size
=
length
size
=
length
# 调用 add_box 方法添加检测框
# 调用 add_box 方法添加检测框
(会自动添加顶部和底部点)
self
.
annotation_engine
.
add_box
(
cx
,
cy
,
size
)
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
()
self
.
_updateDisplay
()
def
_onMouseDoubleClick
(
self
,
event
):
def
_onMouseDoubleClick
(
self
,
event
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment