Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a few codes to show the face landmarks #2

Open
JianjinChen opened this issue Dec 7, 2016 · 3 comments
Open

Add a few codes to show the face landmarks #2

JianjinChen opened this issue Dec 7, 2016 · 3 comments

Comments

@JianjinChen
Copy link

In this python-caffe veision of MTCNN, the demo does not draw face landmarks upon the face box. However, this can be done by simply adding a few lines of codes in "demo.py". Here is my fix
demo_py
Thus it'll show the image with annotated face landmarks .
dttest1

@DuinoDu
Copy link
Owner

DuinoDu commented Feb 4, 2017

Thanks.

@Jay-Liu
Copy link

Jay-Liu commented Oct 7, 2017

wow,you guys are amazing! Thank you so so much

@PrinceP
Copy link

PrinceP commented Apr 27, 2018

def draw_point(img,p,color):
cv2.circle(img, p, 2, color, 1,8,0)

def drawPoints(im, points):
rows,cols = points.shape
hcols = int(cols/2)
for j in range(rows):
for i in range(hcols):
draw_point(im, (points[j][i], points[j][i+hcols]), (255,204,204) )
return im

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants