Opencv
※前提条件:本情報はOpenCV 3.1を基づいて説明してる
以下の手順で性別識別を行う
- Detect the face
- crop the face
- detect at least two eyes in the top half of the cropped image (temp image used)
- detect left and right eyes
- rotate cropped image around left eye to align eyes
- translate image so center between eyes is center of cropped image and eye's are vertically in "common" with sample image's eyes
- resize image to 150x150 keeping aspect ratio
- normalize image for lighting
- classify face as male or female using fisherfaces
参考URL:
http://stackoverflow.com/questions/32527138/opencv-gender-classification-using-cascadeclasifier-vs-facerecognizer-fisherfa
フレッツ光が月額556円~【GMOとくとくBB】
コメント:
|