feature-match-detector is a Viam modular vision service that uses OpenCV's implementation of the SIFT algorithm to identify feature-based matches between a source (reference) image and another image.
For linux:
sudo apt-get install libgl1
The feature-match-detector resource provides the following methods from Viam's built-in rdk:service:vision API
Note: if using this method, any cameras you are using must be set in the depends_on
array for the service configuration, for example:
"depends_on": [
"cam"
]
If you pass set as the key in an object passed to do_command, you may then re-configure this resource on the fly by specifying config attributes to change.
For example, the following passed to do_command would change the source image:
{
"set":
[
{
"key":"source_image_path",
"value":"/path/to/refImage.png"
}
]
}
The following attributes may be configured as feature-match-detector config attributes.
For example: the following configuration would configure the source image, and select minimum 20 good key point matches:
{
"source_image_path": "/path/to/your_reference_image.jpg",
"min_good_matches": 20
}
string (required)
The path to the reference image to which other images will be matched against.
integer (default: 15)
The minimum number of "good" keypoint matches (as determined by Lowe's ratio test).