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

Can we get the name and center position of a detected object ? #49

Closed
Anthodpnt opened this issue Aug 7, 2015 · 3 comments
Closed

Can we get the name and center position of a detected object ? #49

Anthodpnt opened this issue Aug 7, 2015 · 3 comments

Comments

@Anthodpnt
Copy link

Hi,

First of all, thanks for the time you've spent coding this library, it's very useful.
Although, is there any way to get the name and center position of a specific object ?

I need to know the center position of the mouth for example in order to compare the values with default ones and activate some events if the values are close enough.

The problem is that we currently can't say if the x and y positions came from the mouth, the jawline, the left eye, etc... And we can't know the center position of a specific object.

Is a function like getCenterPosition('mouth') possible ?
This function could return the same array as the getCurrentPosition() function but with the x and y values of the mouth's center position or any other object.

Best regards,
Anthony

@auduno
Copy link
Owner

auduno commented Aug 10, 2015

You can get the positions of the points via the function getCurrentPosition( ). See the reference for more details. See the point numbering in the reference for which points to get. In case of the center of the mouth, you could get points 60 and 57 and average them to get the approximate center of the mouth.

@auduno auduno closed this as completed Aug 10, 2015
@Anthodpnt
Copy link
Author

Yeah indeed but there is no way to know if it's the mouth, the eye or anything else. Then it's impossible to average the X and Y position for the mouth with the getCurrentPosition function.

@auduno
Copy link
Owner

auduno commented Aug 15, 2015

It's fully possible to know what facial points are returned, just look at the figure in the reference to understand which points are what.

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

No branches or pull requests

2 participants