From 5e5a7d09774bde195fe31ae143704eb124a764ac Mon Sep 17 00:00:00 2001 From: adamhrv Date: Mon, 7 Jan 2019 02:26:34 +0100 Subject: add demos, in progress --- megapixels/app/utils/draw_utils.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'megapixels/app/utils/draw_utils.py') diff --git a/megapixels/app/utils/draw_utils.py b/megapixels/app/utils/draw_utils.py index f6d53609..47bb7978 100644 --- a/megapixels/app/utils/draw_utils.py +++ b/megapixels/app/utils/draw_utils.py @@ -49,17 +49,3 @@ def draw_degrees(im, pose_data, color=(0,255,0)): t = '{}: {:.2f}'.format(k, v) origin = (10, 30 + (25 * i)) cv.putText(im, t, origin, cv.FONT_HERSHEY_SIMPLEX, 0.5, clr, thickness=2, lineType=2) - - -# --------------------------------------------------------------------------- -# -# Matplotlib drawing functions -# -# --------------------------------------------------------------------------- - -def plot_landmarks3D(im, points, radius=3, color=(0,255,0), stroke_weight=2): - '''Draws facial landmarks, either 5pt or 68pt - ''' - for pt in points: - cv.circle(im, tuple(pt), radius, color, -1, cv.LINE_AA) - -- cgit v1.2.3-70-g09d2