Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Face parser: unify bounding box coordinates order #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edumucelli
Copy link

The face parser has two ways modus operandi:

  1. Using one of the library's detector such as MTCNNFaceDetector or FaceAlignmentDetectoror
  2. Giving a pre-computed bounding box.

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).

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.

… giving a pre-computed bounding box as: left, top, right, bottom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant