函数 | 描述 |
---|---|
cv.line(img,x,y,color,thickness) | |
cv.polylines() | |
cv.circle(img,center,r,color,thickness) | |
cv.rectangle(img,top-left,bottom-right,color,thickness) | |
cv.ellipse(img,center,axes-lengths) | |
cv.putTest(img,text,bottom-left,font,font-scale,color,thickness,lineType) |
参数 | 描述 |
---|---|
img | 图片指针 |
color | 对BGR模式传入数组(255,0,0),对灰度图使用常量 |
thickness | 图形的宽度,如果传入-1则为填充 |
lineType | 线型 |
参考文献:
https://blog.csdn.net/qq_41905045/article/details/81216114
https://docs.opencv.org/3.4.3/dc/da5/tutorial_py_drawing_functions.html