Commit 7f0292ff authored by klorydryk's avatar klorydryk

Bold rectangle around faces - black border on names

parent d12dfa2f
......@@ -329,7 +329,15 @@ def detectAndTrackMultipleFaces(start_thread,
# If Known -> print Name
if fid in faceNames.keys():
cv2.putText(resultImage,
faceNames[fid] ,
# Name's alignment
(t_x+ int((t_w - len(faceNames[fid])*10)/2 + 10), int(t_y) - 10),
cv2.FONT_HERSHEY_SIMPLEX,
0.5,
(0,0,0),
2,
cv2.LINE_AA)
cv2.putText(resultImage,
faceNames[fid] ,
# Name's alignment
......@@ -441,7 +449,7 @@ def rectangle_around_face(fid, faceTrackers, faceSuspicion, draw_person_dangeros
(t_x, t_y),
(t_x + t_w , t_y + t_h),
person_color,
1)
2)
def pick_person_dangerosity_color(suspicionLevel):
'''
......
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