Issue
I tried to use the following code:
xCoordinate=point.x
(point is type of cv2.keyPoint) It gives me error saying cv2.keyPoint has no attribute 'x'
Solution
You can use:
import numpy as np
pts = np.float([key_point.pt for key_point in kp]).reshape(-1, 1, 2)
pts
will be an array
of keypoints.
Answered By - Francesco Nazzaro
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.