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

Not understanding what bbox is #20

Closed
RafaRuiz opened this issue Oct 19, 2015 · 3 comments
Closed

Not understanding what bbox is #20

RafaRuiz opened this issue Oct 19, 2015 · 3 comments
Labels

Comments

@RafaRuiz
Copy link

Hello, I've seen an example, for example the examples/video_input.cpp and I can see this when passing from cv::Rect (face_rect) to bbox:
bbox[0] = faces[i].x;
bbox[1] = faces[i].y;
bbox[2] = faces[i].x + faces[i].width;
bbox[3] = faces[i].y;
bbox[4] = faces[i].x + faces[i].width;
bbox[5] = faces[i].y + faces[i].height;
bbox[6] = faces[i].x;
bbox[7] = faces[i].y + faces[i].height;

the parameter 0 and 6 is the same, the parameter 1 and 3 is the same, 2 and 4, 5 and 7.

Why?

@uricamic
Copy link
Owner

Hi @RafaRuiz,

CLandmark supports a general face box given by coordinates of all its corners. However, most of the face detectors (including the OpenCV one used in the example) provide only axis aligned face boxes. That's why some of the coordinates seem to be duplicates.

@RafaRuiz
Copy link
Author

Fair enough, thank you very much!

@uricamic
Copy link
Owner

No problem, I am glad it helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants