首页 > 编程语言 > 详细

python中的opencv

时间:2019-10-05 18:48:04      阅读:86      评论:0      收藏:0      [点我收藏+]

cv2.rectangle(img, pt1, pt2, color[, thickness[, lineType[, shift]]]) → None

img – Image.
pt1 – Vertex of the rectangle.
pt2 – Vertex of the rectangle opposite to pt1 .
color – Rectangle color or brightness (grayscale image).
thickness – Thickness of lines that make up the rectangle. Negative values, like CV_FILLED , mean that the function has to draw a filled rectangle.
lineType – Type of the line. See the line() description.
8 (or omitted) - 8-connected line.
4 - 4-connected line.
CV_AA - antialiased line.
shift – Number of fractional bits in the point coordinates.

pt1:(x1,y1)

pt2:(x2,y2)

技术分享图片

 

python中的opencv

原文:https://www.cnblogs.com/hai5111/p/11625318.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!