DlibDotNet icon indicating copy to clipboard operation
DlibDotNet copied to clipboard

GetFaceChipDetail not working well when using a FullObjectDetection instantiated with the face rectangle and landmarks

Open jpsalada opened this issue 4 years ago • 1 comments

Hi,

FullObjectDetection exposes a constructor where we can input the face rectangle and the facel andmark points. This is pretty useful when we have datasets that expose this information annotated, so we do not have to repeat work.

However when we do GetFaceChipDetal with that instance, the face is not normalized correctly, namely the rotation at least. It seems to only work well when the object FullObjectDetection is filled and returned by the ShapePredictor model.

jpsalada avatar Nov 20 '20 16:11 jpsalada

@jpsalada

You are correct. But it is specification of dlib rather than DlibDotNet. You can find dlib transforms fixed points to input point (FullObjectDetection). https://github.com/davisking/dlib/blob/f4f8bff95ec84d441953fb854c5261655c22c824/dlib/image_transforms/interpolation_abstract.h#L1399 https://github.com/davisking/dlib/blob/f4f8bff95ec84d441953fb854c5261655c22c824/dlib/image_transforms/interpolation.h#L1942

takuya-takeuchi avatar Nov 21 '20 08:11 takuya-takeuchi