opencv 显示图片线条粗
时间: 2023-10-21 07:04:10 浏览: 242
要在OpenCV中显示图片线条的粗细,可以使用cv::line函数中的thickness参数来设置线条的宽度。该参数的默认值为1,表示线条的默认粗细。您可以根据需要调整该值来增加或减小线条的粗细。例如,将thickness设置为2或更大的值将使线条变粗。
另外,如果您使用的是Python中的cv2库,可以使用cv2.line函数的thickness参数来设置线条的宽度。同样,您可以根据需要调整该值来改变线条的粗细。
总结起来,要在OpenCV中显示图片线条的粗细,您可以使用相应的绘制线条函数并调整其thickness参数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [OpenCV实战(14)——图像线条提取](https://blog.csdn.net/LOVEmy134611/article/details/128808262)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [图像处理Opencv(六)](https://blog.csdn.net/LateNight_LL/article/details/122280203)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [使用OpenCV circle函数图像上画圆的示例代码](https://download.csdn.net/download/weixin_38589168/14858781)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文