Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to find the co-ordinates of keypoints in python?

Hello,

I am programming in python with OpenCV 2.4.5. My program is as follows:

fast = cv2.FastFeatureDetector()
kp = fast.detect(crop)
img2 = cv2.drawKeypoints(crop, kp, color=(255,0,0))
print kp

Now I would like to find the X and Y co-ordinates from 'kp'. The type of kp is list and the value which is directly printed is '[< KeyPoint 04ACDBD8>]'. Can you please help me finding the co-ordinates.

Thank you.