Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
klorydryk
FacialRecoTrackingScore
Commits
93e6986a
Commit
93e6986a
authored
Jan 28, 2020
by
cb
Browse files
Changer Gradient Text
parent
40dd8762
Changes
1
Hide whitespace changes
Inline
Side-by-side
trackmultiplefaces.py
View file @
93e6986a
...
...
@@ -89,7 +89,8 @@ def displayGradientOn(resultImage, value):
y_offset
=
int
((
start_position
-
cursor_height
/
2
)
+
gradient_height
*
(
2
-
(
value
-
1
))
/
2
)
resultImage
[
y_offset
:
y_offset
+
cursor_height
,
x_offset
:
x_offset
+
cursor_width
]
=
cursor
text
=
"DANGEROSITE
\n
MOYENNE"
# Put Text below Gradient
text
=
"Niveau
\n
Risque"
put_multi_lines
(
int
(
width
-
55
),
int
(
10
+
start_position
+
gradient_height
),
...
...
@@ -97,24 +98,6 @@ def displayGradientOn(resultImage, value):
resultImage
,
NAME_COLOR
)
#cv2.putText(resultImage,
# "Danger",
# (int(width-55),int(10+start_position+gradient_height)),
# cv2.FONT_HERSHEY_SIMPLEX,
# FONT_SIZE,
# NAME_COLOR,
# 1,
# cv2.LINE_AA)
#
#cv2.putText(resultImage,
# "moyen",
# (int(width-55),int(10+12+start_position+gradient_height)),
# cv2.FONT_HERSHEY_SIMPLEX,
# FONT_SIZE,
# NAME_COLOR,
# 1,
# cv2.LINE_AA)
def
calculateAverageSuspicious
(
faceSuspicion
):
global
averageSuspicious
...
...
Write
Preview
Supports
Markdown
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