|
表格线识别通用库文档
|
带有打印配置参数的矩形列表 更多...
#include <debug.hpp>
Public 成员函数 | |
| ConfigRects (const std::vector< Rect > &rects, bool output_seq_num=true, const cv::Scalar &rect_color=cv::Scalar(255, 0, 0), int rect_thickness=2, const cv::Scalar &text_color=cv::Scalar(0, 0, 255), int text_thickness=1) | |
| 带有打印配置参数的矩形列表的带参构造函数 | |
| const ConfigRects & | DrawRects (cv::Mat &image) const |
| 在图片上绘制矩形 | |
带有打印配置参数的矩形列表
该结构用于在图像上绘制矩形列表,并支持打印配置参数,包括是否输出序号、矩形边框颜色和粗细、文字颜色和粗细等。
|
inline |
带有打印配置参数的矩形列表的带参构造函数
该构造函数用于初始化矩形列表的配置信息,包括矩形的显示方式、颜色、粗细等参数。
| rects | 矩形列表 |
| output_seq_num | 是否打印矩形的序号 默认为 true |
| rect_color | 矩形线的颜色(详见 OpenCV) 默认为 cv::Scalar(255, 0, 0) |
| rect_thickness | 矩形线的粗细(详见 OpenCV) 默认为 1 |
| text_color | 文字的颜色(详见 OpenCV) 默认为 cv::Scalar(0, 0, 255) |
| text_thickness | 文字的粗细(详见 OpenCV) 默认为 1 |
|
inline |