Ask Your Question

Revision history [back]

In your findContours call, notice the flag cv2.CHAIN_APPROX_SIMPLE. This is used by OpenCV to approximate some points that can be reduced, and avoid outputting every single contour point.

If you want OpenCV to not do this, change that to cv2.CHAIN_APPROX_NONE. The list will contain every contour point, instead of the reduced approximation.

In your findContours call, notice the flag cv2.CHAIN_APPROX_SIMPLE. This is used by OpenCV to approximate some points that can be reduced, and avoid outputting every single contour point.

If you want OpenCV to not do this, change that to cv2.CHAIN_APPROX_NONE. The resulting list will contain every contour point, instead of the reduced approximation.

In your findContours call, notice the flag cv2.CHAIN_APPROX_SIMPLE. cv2.CHAIN_APPROX_SIMPLE. This is used by OpenCV to approximate some points that can be reduced, and avoid outputting every single contour point.

If you want OpenCV to not do this, change that to cv2.CHAIN_APPROX_NONE. cv2.CHAIN_APPROX_NONE. The resulting list will contain every contour point, instead of the reduced approximation.