cv.drawContours怎么变颜色
时间: 2023-10-14 08:57:08 浏览: 138
VC 改变颜色
要改变cv2.drawContours()函数绘制轮廓的颜色,可以通过color参数来实现。color参数是一个三元组,分别表示RGB颜色值。例如,如果你想将轮廓的颜色改为红色,你可以将color参数设置为(0, 0, 255)。其中,(0, 0, 255)表示红色的RGB值。你可以根据需要调整三个数值来改变轮廓的颜色。
#### 引用[.reference_title]
- *1* *3* [cv2.drawContours](https://blog.csdn.net/weixin_36670529/article/details/113927254)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [cv2.drawContours的参数](https://blog.csdn.net/weixin_42607969/article/details/129604450)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文