codeniko / shape_predictor_81_face_landmarks

Custom shape predictor model trained to find 81 facial feature landmarks given any image
BSD 3-Clause "New" or "Revised" License
465 stars 126 forks source link

creating a new predictor #3

Closed UrstrulyRoot closed 5 years ago

UrstrulyRoot commented 6 years ago

Hi, I want to create a predictor that just outputs 12 landmarks corresponding to eyes instead of all 68.How should my training xml file reflect to serve my purpose? can i achieve it by only having 12 co-ordinates in the xml file? Thanks in advance

codeniko commented 5 years ago

I only recently saw this, sorry. I hope you've figured this out but it's as you said. You can download ibug images and remove the coordinates you're not interested in, keeping only the ones around the eyes. Retrain by using http://dlib.net/train_shape_predictor.py.html