Skip to content

Commit

Permalink
chore: change sep
Browse files Browse the repository at this point in the history
  • Loading branch information
cleardusk committed Oct 8, 2020
1 parent 503be7f commit 714213b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ def draw_landmarks(img, pts, style='fancy', wfp=None, show_flag=False, **kwargs)
plt.show()


def cv_draw_landmark(img_ori, pts, box=None, color=GREEN, size=2):
def cv_draw_landmark(img_ori, pts, box=None, color=GREEN, size=1):
img = img_ori.copy()
n = pts.shape[1]
if n <= 106:
for i in range(n):
cv2.circle(img, (int(round(pts[0, i])), int(round(pts[1, i]))), size, color, -1)
else:
sep = 16
sep = 1
for i in range(0, n, sep):
cv2.circle(img, (int(round(pts[0, i])), int(round(pts[1, i]))), size, color, 1)

Expand Down

0 comments on commit 714213b

Please sign in to comment.