diff options
| author | adamhrv <adam@ahprojects.com> | 2019-01-07 02:26:34 +0100 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-01-07 02:26:34 +0100 |
| commit | 5e5a7d09774bde195fe31ae143704eb124a764ac (patch) | |
| tree | 20e48a5f80e94c5021c01e9558de8af873e2eaf7 /megapixels/app/utils/draw_utils.py | |
| parent | 4bcb82c0f295d79d3d247252e7e98b2d986ae821 (diff) | |
add demos, in progress
Diffstat (limited to 'megapixels/app/utils/draw_utils.py')
| -rw-r--r-- | megapixels/app/utils/draw_utils.py | 14 |
1 files changed, 0 insertions, 14 deletions
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) - |
