VisionFlow Match
Hosted OpenCV for finding a pattern image inside a larger image: template matching, ORB/SIFT...
我该使用它吗
质量与安全性
发现(2)
- LOW在 template-match 中
- LOW在 feature-match 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"visionflow-match": {
"url": "https://visionflow-match.saastemly.com/mcp"
}
}
}远程端点
https://visionflow-match.saastemly.com/mcpstreamable-http它能做什么
工具清单
工具(3)
🟢template-match(image, template, method, threshold, max_matches, ...)
Find where a small pattern image (a button, icon, logo or crop) appears inside a larger screenshot or picture, using OpenCV cv2.matchTemplate. Returns the best position, plus every non-overlapping position scoring above the threshold, as pixel boxes with scores. Use it for exact-looking pixel patterns at the same scale; for different scale, rotation or perspective use /v1/homography. Price: $0.003 a call (3 free calls a day without an API key).
输入模式
{
"type": "object",
"properties": {
"image": {
"type": "string",
"description": "Base64 of a PNG, JPEG, BMP or WebP file (a data: URI also works). At most 4 million pixels and about 2 MB. Alpha is dropped."
},
"template": {
"type": "string",
"description": "Base64 of the pattern to find, same formats. At most 1 million pixels and about 1 MB. Must fit inside the image."
},
"method": {
"type": "string",
"enum": [
"TM_CCOEFF_NORMED",
"TM_CCORR_NORMED",
"TM_SQDIFF_NORMED"
],
"description": "OpenCV matching method (default TM_CCOEFF_NORMED, robust to brightness change). Scores are 0-1, higher is better; for TM_SQDIFF_NORMED the score is 1 minus the squared-difference value"
},
"threshold": {
"type": "number",
"description": "Minimum score for a match, 0-1 (default 0.8)"
},
"max_matches": {
"type": "integer",
"description": "Most matches returned, 1-50 (default 5); overlapping positions are suppressed"
},
"grayscale": {
"type": "boolean",
"description": "Match on grayscale versions of both images (default false: match all three colour channels)"
}
},
"required": [
"image",
"template"
]
}⚪feature-match(image, template, detector, max_features, ratio, ...)
Match local features between a pattern image and a larger image: detects ORB or SIFT keypoints in both, matches them with a brute-force matcher and Lowe's ratio test (OpenCV BFMatcher.knnMatch), and returns the good matches as point pairs sorted by distance. Use it to see which parts of a pattern are present and where, even when the pattern is scaled or rotated; for the pattern's outline use /v1/homography. Price: $0.004 a call (3 free calls a day without an API key).
输入模式
{
"type": "object",
"properties": {
"image": {
"type": "string",
"description": "Base64 of a PNG, JPEG, BMP or WebP file (a data: URI also works). At most 4 million pixels and about 2 MB. Alpha is dropped."
},
"template": {
"type": "string",
"description": "Base64 of the pattern to find, same formats. At most 1 million pixels and about 1 MB."
},
"detector": {
"type": "string",
"enum": [
"orb",
"sift"
],
"description": "Keypoint detector and descriptor: orb (default, fast, binary descriptors, Hamming distance) or sift (slower, better with scale changes, L2 distance)"
},
"max_features": {
"type": "integer",
"description": "Most keypoints kept per image, 100-5000 (default 2000)"
},
"ratio": {
"type": "number",
"description": "Lowe's ratio test threshold, 0.5-0.95 (default 0.75): a match is kept when its distance is below ratio times the second-best distance"
},
"max_matches": {
"type": "integer",
"description": "Most matches listed, 1-200 (default 50); goodMatches always counts all of them"
}
},
"required": [
"image",
"template"
]
}🟢homography(image, template, detector, max_features, ratio, ...)
Locate a pattern image inside a larger image even when it is scaled, rotated or viewed at an angle: ORB or SIFT feature matching plus cv2.findHomography with RANSAC. Returns whether it was found, the 3x3 homography (pattern pixels to image pixels), the four projected corners, the bounding box, and the inlier count as confidence. Use it to find a UI element, logo or object in a screenshot or photo. Price: $0.004 a call (3 free calls a day without an API key).
输入模式
{
"type": "object",
"properties": {
"image": {
"type": "string",
"description": "Base64 of a PNG, JPEG, BMP or WebP file (a data: URI also works). At most 4 million pixels and about 2 MB. Alpha is dropped."
},
"template": {
"type": "string",
"description": "Base64 of the pattern to find, same formats. At most 1 million pixels and about 1 MB. Needs visible texture or corners; a flat-coloured pattern has no features."
},
"detector": {
"type": "string",
"enum": [
"orb",
"sift"
],
"description": "Keypoint detector and descriptor: orb (default, fast, binary descriptors, Hamming distance) or sift (slower, better with scale changes, L2 distance)"
},
"max_features": {
"type": "integer",
"description": "Most keypoints kept per image, 100-5000 (default 2000)"
},
"ratio": {
"type": "number",
"description": "Lowe's ratio test threshold, 0.5-0.95 (default 0.75): a match is kept when its distance is below ratio times the second-best distance"
},
"min_inliers": {
"type": "integer",
"description": "Fewest RANSAC inliers for found to be true, 4-200 (default 10)"
},
"reproj_threshold": {
"type": "number",
"description": "RANSAC reprojection error in pixels below which a match is an inlier, 0.5-20 (default 3)"
}
},
"required": [
"image",
"template"
]
}社区
证据