一、编程环境:
OpenCV | 4.1.0 |
IDE | Visual Studio 2017 Enterprise (15.9.13) |
操作系统 | Windows 10 x64 中文专业版 (1903) |
二、OpenCV 中的绘制几何形状函数:
- 画直线:
void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
int thickness = 1, int lineType = LINE_8, int shift = 0);
- 画矩形:
void rectangle(InputOutputArray img, Rect rec,
const Scalar& color, int thickness = 1,