|
@@ -430,6 +430,18 @@ int dataCollectionPaper(int cols, int index, int fontSize, int lineGrayPix, bool
|
|
|
putTextZH(img, fSize, strEgInfo.c_str(), cv::Point(leftPos + 20, topPos + 20 + fSize.height + 20 + 3), Scalar(0), 20, "宋体");
|
|
|
cv::line(img, cv::Point(leftPos + 20 + fSize.width + 10, lineTop1), cv::Point(leftPos + 20 + fSize.width + 10, topPos + 200), Scalar(0, 0, 0), 2, 8, 0);
|
|
|
|
|
|
+ // 填涂示例
|
|
|
+ string strtt = "正确填涂";
|
|
|
+ cv::Point ptEgInfo(leftPos + 70, topPos + 20 + fSize.height + 20 + 30);
|
|
|
+ putTextZH(img, fSize, strtt.c_str(), ptEgInfo, Scalar(0), 20, "宋体");
|
|
|
+ cv::Rect rcttbox(ptEgInfo.x + 100, ptEgInfo.y - 5, 30, 30);
|
|
|
+ rectangle(img, rcttbox, cv::Scalar(0), -1);
|
|
|
+ rcttbox.x += 1;
|
|
|
+ rcttbox.y += 1;
|
|
|
+ rcttbox.width -= 2;
|
|
|
+ rcttbox.height -= 2;
|
|
|
+ rectangle(img, rcttbox, cv::Scalar(100, 100, 100), -1);
|
|
|
+
|
|
|
// 贴图区域
|
|
|
/* 暂不实现 */
|
|
|
|