Skip to content

Commit

Permalink
chore: 文档及画图的小修改
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 13, 2023
1 parent 9375442 commit 586c23a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/zh_cn/3.1-任务流水线协议.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ graph LR;
目前仅支持单张图片。
- `count`: *int*
匹配的特征点数量,默认 4.
匹配的特征点的数量要求(阈值),默认 4.
- `green_mask`: *bool*
是否进行绿色掩码。可选,默认 false。
Expand Down Expand Up @@ -287,7 +287,7 @@ graph LR;
颜色上限值。必选。最内层 list 长度需和 `method` 的通道数一致。
- `count`: *int*
符合的点的数量要求。可选,默认 1。
符合的点的数量要求(阈值)。可选,默认 1。
- `connected`: *bool*
是否是相连的点才会被计数。可选,默认否。
Expand Down
4 changes: 2 additions & 2 deletions source/MaaFramework/Vision/FeatureMatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ void FeatureMatcher::draw_result(const cv::Mat& templ, const std::vector<cv::Key
const auto& res = results.at(i);
cv::rectangle(image_draw, res.box, color, 1);

std::string flag = MAA_FMT::format("{}: {}, [{}, {}, {}, {}]", i, res.count, res.box.x, res.box.y,
res.box.width, res.box.height);
std::string flag = MAA_FMT::format("Cnt: {}, [{}, {}, {}, {}]", res.count, res.box.x, res.box.y, res.box.width,
res.box.height);
cv::putText(image_draw, flag, cv::Point(res.box.x, res.box.y - 5), cv::FONT_HERSHEY_PLAIN, 1.2, color, 1);
}

Expand Down

0 comments on commit 586c23a

Please sign in to comment.