takuya-takeuchi / FaceRecognitionDotNet

The world's simplest facial recognition api for .NET on Windows, MacOS and Linux
MIT License
1.27k stars 308 forks source link

Head Pose Estimation #70

Closed takuya-takeuchi closed 4 years ago

takuya-takeuchi commented 5 years ago

From Matrix

Reference

https://github.com/lincolnhard/head-pose-estimation

How to

From Deep Learning

Reference

https://github.com/guozhongluo/head-pose-estimation-and-face-landmark

How to

From SVM

Reference

https://sukohi.blogspot.com/2017/03/scikit-learn-head-pose-estimation.html

How to

Memo

takuya-takeuchi commented 5 years ago

Memo

https://github.com/guozhongluo/head-pose-estimation-and-face-landmark/blob/d6b5816727565de9031b77b2d267c5f8567de22d/model/deploy.prototxt#L194

As far as I can see this, it needs only lanrmark point to estimate pose? If so, it may be able to simplify network.

takuya-takeuchi commented 5 years ago

ops, poselayer code is missing...

takuya-takeuchi commented 5 years ago

poselayer is InnerProduct

takuya-takeuchi commented 5 years ago

WIP.

takuya-takeuchi commented 5 years ago
       Roll: 13.3179502210815
      Pitch: -25.4978731056757
        Yaw: -46.5588758170786
 Predicted Roll: 9.62651096074842
Predicted Pitch: -16.836335144937
  Predicted Yaw: -48.8857434364036

GT

image

Predicted

image

takuya-takeuchi commented 4 years ago

Use KRLS instead of Dnn. It works fine.

GT

gt

Predicted

predicted

takuya-takeuchi commented 4 years ago

Implemented HeadPoseEstimator. Get Face Landmark by FRDN and estimate head pose.

GT

AFW_134212_1_4 jpg-predicted

Predicted (all manual)

AFW_134212_1_4