Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv2.boxPoints() used in tutorials does not exist in opencv 2.4.8

Hello, In order to extract the rotated box from a contour, I used followin python script:

# cnt is a contour occurence
rect = cv2.minAreaRect(cnt)
box = cv2.boxPoints(rect)

And following error occurs : ''module' object has no attribute 'boxPoints'

Please help me.

Best regards.