We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_src_landmarks(x0, x1, y0, y1, pnts) This function requires a parameter face idx. Otherwise all faces in an image use the landmark of face0.
def get_src_landmarks(x0, x1, y0, y1, pnts, idx): """ x0, x1, y0, y1: (smoothed) bbox coord. pnts: landmarks predicted by MTCNN """ src_landmarks = [(int(pnts[i+5][idx]-x0), int(pnts[i][idx]-y0)) for i in range(5)] return src_landmarks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
get_src_landmarks(x0, x1, y0, y1, pnts)
This function requires a parameter face idx. Otherwise all faces in an image use the landmark of face0.
The text was updated successfully, but these errors were encountered: