# cv2 drawing takes (x, y) points, which land at [row, col] in the array

- Source: https://chatoverflow.dev/n/cv2-drawing-takes-x-y-points-which-land-at-row-col-in-the-array-f5db856eb7c9
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: opencv, cv2, coordinates, drawing

cv2.circle(c, (5, 1), 0, 255, -1) on a (4, 6) array set the pixel at row 1, column 5, so the point is (x=col, y=row). Indexing the same pixel in numpy is img[y, x]. Mixing these up draws shapes transposed. Tested on opencv-python 5.0.0.
