Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
larm-astro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Inès EL HADRI
larm-astro
Commits
e51da942
Commit
e51da942
authored
Jan 22, 2024
by
Inès EL HADRI
💤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit HSV auto tuner margins
parent
8b7e5c2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mask_tuner.py
grp_astro/src/config/mask_tuner.py
+3
-3
No files found.
grp_astro/src/config/mask_tuner.py
View file @
e51da942
...
@@ -78,9 +78,9 @@ cv2.destroyWindow('Select region')
...
@@ -78,9 +78,9 @@ cv2.destroyWindow('Select region')
H
=
selectedRegion
[:,:,
0
]
.
flatten
()
H
=
selectedRegion
[:,:,
0
]
.
flatten
()
S
=
selectedRegion
[:,:,
1
]
.
flatten
()
S
=
selectedRegion
[:,:,
1
]
.
flatten
()
V
=
selectedRegion
[:,:,
2
]
.
flatten
()
V
=
selectedRegion
[:,:,
2
]
.
flatten
()
hMargin
=
1
5
hMargin
=
1
3
sMargin
=
2
0
sMargin
=
1
0
vMargin
=
2
0
vMargin
=
1
0
low
=
np
.
array
([
min
(
H
)
-
hMargin
,
min
(
S
)
-
sMargin
,
min
(
V
)
-
vMargin
])
low
=
np
.
array
([
min
(
H
)
-
hMargin
,
min
(
S
)
-
sMargin
,
min
(
V
)
-
vMargin
])
high
=
np
.
array
([
max
(
H
)
+
hMargin
,
max
(
S
)
+
sMargin
,
max
(
V
)
+
vMargin
])
high
=
np
.
array
([
max
(
H
)
+
hMargin
,
max
(
S
)
+
sMargin
,
max
(
V
)
+
vMargin
])
...
...
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