diff --git a/docs/en_us/3.1-PipelineProtocol.md b/docs/en_us/3.1-PipelineProtocol.md index d66d57b0e..c26e8e6ff 100644 --- a/docs/en_us/3.1-PipelineProtocol.md +++ b/docs/en_us/3.1-PipelineProtocol.md @@ -252,9 +252,8 @@ This task property requires additional fields: Recognition area coordinates. Optional, default is [0, 0, 0, 0], which represents the full screen. The four values are [x, y, w, h]. -- `template`: *string* - Path to the template image, relative to the "image" folder. Required. - Currently, only a single image is supported. +- `template`: *string* | *list* + Path to the template image, relative to the "image" folder. Required. - `count`: *int* The number of required matching feature points (threshold), default is 4. diff --git "a/docs/zh_cn/3.1-\344\273\273\345\212\241\346\265\201\346\260\264\347\272\277\345\215\217\350\256\256.md" "b/docs/zh_cn/3.1-\344\273\273\345\212\241\346\265\201\346\260\264\347\272\277\345\215\217\350\256\256.md" index ff1e26dd8..39be05c53 100644 --- "a/docs/zh_cn/3.1-\344\273\273\345\212\241\346\265\201\346\260\264\347\272\277\345\215\217\350\256\256.md" +++ "b/docs/zh_cn/3.1-\344\273\273\345\212\241\346\265\201\346\260\264\347\272\277\345\215\217\350\256\256.md" @@ -257,9 +257,8 @@ graph LR; 识别区域坐标。可选,默认 [0, 0, 0, 0],即全屏。 四个值分别为 [x, y, w, h]。 -- `template`: *string* +- `template`: *string* | *list* 模板图片路径,需要 `image` 文件夹的相对路径。必选。 - 目前仅支持单张图片。 - `count`: *int* 匹配的特征点的数量要求(阈值),默认 4. diff --git a/source/MaaFramework/Vision/FeatureMatcher.cpp b/source/MaaFramework/Vision/FeatureMatcher.cpp index 5e7472044..d8b116d55 100644 --- a/source/MaaFramework/Vision/FeatureMatcher.cpp +++ b/source/MaaFramework/Vision/FeatureMatcher.cpp @@ -3,6 +3,7 @@ MAA_SUPPRESS_CV_WARNINGS_BEGIN #include #include + #ifdef MAA_VISION_HAS_XFEATURES2D #include #endif