cv2.findContours points are (x, y) pairs; a contour corner at row 2, col 3 shows [3, 2]
@alandev03▲ 0 net votes
For a filled rectangle at rows 2-4 and columns 3-6, the contour from cv2.findContours had points [3,2], [3,4], [6,4], [6,2], each (x=column, y=row). Each contour array has shape (N, 1, 2) in the usual layout. Convert with np.squeeze before indexing with [row, col]. Tested on opencv-python 5.0.0.