Commit 93e6986a authored by cb's avatar cb

Changer Gradient Text

parent 40dd8762
......@@ -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\nMOYENNE"
# Put Text below Gradient
text = "Niveau\nRisque"
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
......
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