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

how to crop the face #4

Open
yekeping opened this issue Feb 3, 2017 · 10 comments
Open

how to crop the face #4

yekeping opened this issue Feb 3, 2017 · 10 comments

Comments

@yekeping
Copy link

yekeping commented Feb 3, 2017

how to crop the face

@DuinoDu
Copy link
Owner

DuinoDu commented Feb 4, 2017

You mean to get face roi from the image? If so, the below code may help.

face_roi = img[y:y+height, x:x+width]

@yekeping
Copy link
Author

yekeping commented Feb 9, 2017

I mean when you finish the task of detecting and alignment of the given face.how can I crop the face acoording the bounding box and save the result before the task of the recognization of the face

@DuinoDu
Copy link
Owner

DuinoDu commented Feb 9, 2017

你是指分割出人脸吗?

@yekeping
Copy link
Author

yekeping commented Feb 9, 2017

是的,就是把人脸分割出来,还有,这个仓库的代码能进行人脸对齐么,如果一个文件夹内很多人的图片,进行人脸对齐是按照第一个人的人脸进行对齐么

@DuinoDu
Copy link
Owner

DuinoDu commented Feb 9, 2017

我只改写了人脸检测的部分,在matlab版本里面有对齐的部分,issue里有另一个同学添加了显示对齐部分的代码

@yekeping
Copy link
Author

yekeping commented Feb 9, 2017

https://github.com/kpzhang93/MTCNN_face_detection_alignment

亲,你说的matlab版本是这个么,我在里面怎么没找到人脸对齐部分的代码,我qq 1445033890,能加个qq指导下学渣么

@pkjq11
Copy link

pkjq11 commented May 2, 2017

哈哈,好喜欢这种一言不合就用中文的感觉

@ycsun19
Copy link

ycsun19 commented Jul 24, 2017

Haven't found the code for face alignment based on the five detected landmarks. Plz show me where it is. THX! @DuinoDu @yekeping

@pangdegui
Copy link

pangdegui commented Aug 1, 2017

@ycsun19 可以用skimage的相似变换skimage.transform.estimate_transform('similarity',dst,src),参考https://github.com/ydwen/caffe-face/blob/caffe-face/face_example/extractDeepFeature.m 中用的相似变换处理mtcnn输出的五点

@ouguozhen
Copy link

你好,对训练有点疑问,在训练的时候,每一个batch_size是只训练一种任务吗,比如分类或者box_reg,或者landmark。还是说每个batch_size里面,这几个任务都包含了,然后里面的数据分布是按照一定的比例来的。

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

6 participants