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

image_pts #16

Closed
oladayosolomon opened this issue Nov 21, 2018 · 0 comments
Closed

image_pts #16

oladayosolomon opened this issue Nov 21, 2018 · 0 comments

Comments

@oladayosolomon
Copy link

Thank for sharing this peice on head pose extimation. pls i am getting this error while trying to replicate this: After running from the begining to that portion of the code i have that error.
def get_head_pose(shape):
image_pts = np.float32([shape[17], shape[21], shape[22], shape[26], shape[36],
shape[39], shape[42], shape[45], shape[31], shape[35],
shape[48], shape[54], shape[57], shape[8]])
_, rotation_vec, translation_vec = cv2.solvePnP(object_pts, image_pts, cam_matrix, dist_coeffs)

NameError Traceback (most recent call last)
in
----> 1 _, rotation_vec, translation_vec = cv2.solvePnP(object_pts, image_pts, cam_matrix, dist_coeffs)

NameError: name 'image_pts' is not defined

pls any solution

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

1 participant