cv2.rectangle线性
时间: 2023-09-20 16:14:11 浏览: 92
计算机视觉_实验4.doc
引用\[1\]:cv.ellipse(img, center, axes, angle, startAngle, endAngle, color\[, thickness=1, lineType=LINE_8, shift=0\])。引用\[2\]:绘制矩形实例中的代码中使用了cv.rectangle()函数来绘制矩形。该函数的参数中包括了thickness参数,用于指定矩形的边框线宽度。如果thickness参数的值为正数,则绘制实心边框;如果thickness参数的值为负数,则绘制填充矩形。引用\[3\]:OpenCV提供了cv2.rectangle()函数用于绘制矩形,该函数可以根据给定的参数绘制矩形,并且可以选择绘制实心边框或填充矩形。根据这些引用内容,可以得出结论:cv2.rectangle()函数可以用于绘制线性的边框或填充矩形。
#### 引用[.reference_title]
- *1* [cv2绘图 cv.line(),cv.circle(),cv.rectangle(),cv.ellipse(),cv.putText() python](https://blog.csdn.net/weixin_63676550/article/details/128084309)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [OpenCV-Python学习(11)—— OpenCV 图像几何形状绘制(cv.line、cv.circle、cv.rectangle、cv.ellipse)](https://blog.csdn.net/m0_38082783/article/details/127534273)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [OpenCV笔记:模板匹配 cv2.matchTemplate()、cv2.minMaxLoc() 与 绘制矩形 cv2.rectangle() 方法介绍](https://blog.csdn.net/weixin_44259720/article/details/127251331)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文