Open edumucelli opened 4 years ago
The face parser has two ways modus operandi:
MTCNNFaceDetector
FaceAlignmentDetector
However in (1) the coordinates order is y0, x0, y1, x1 (left, top, right, bottom) meanwhile on (2) it is y0, x0, y1, x1 (top, left, bottom,right).
y0, x0, y1, x1
That is very confusing when looking at the code and trying to use it without an internal face detector.
This PR reorders the coordinates and rename them so they are easily understandable.
The face parser has two ways modus operandi:
MTCNNFaceDetector
orFaceAlignmentDetector
orHowever in (1) the coordinates order is
y0, x0, y1, x1
(left, top, right, bottom) meanwhile on (2) it isy0, x0, y1, x1
(top, left, bottom,right).That is very confusing when looking at the code and trying to use it without an internal face detector.
This PR reorders the coordinates and rename them so they are easily understandable.