OpenCV 坐标表示:理解 (y, x) 与 (x, y) 的区别

> 📝 本文是我在学习 OpenCV 时遇到的一个问题。问题的解答和中文翻译均由 AI 生成。

Why sometimes opencv represent a point coordinate as (y,x) (e.g. the result of cv2.findContours) , and sometimes it represent as (x, y) (e.g. the arg `center` of cv2.circle)?

> 为什么 OpenCV 有时用 (y,x) 表示坐标点(比如 cv2.findContours 的返回值),有时又用 (x,y) 表示(比如 cv2.circle 函数的 `center` 参数)?