8000 GitHub - bhaney/feature-match-detector: Implements an orb-based feature match detector service
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bhaney/feature-match-detector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feature-match-detector

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.

Prerequisites

For linux:

sudo apt-get install libgl1

API

The feature-match-detector resource provides the following methods from Viam's built-in rdk:service:vision API

get_detections(image=binary)

get_detections_from_camera(camera_name=string)

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"
      ]

do_command({"set":[{"key":"value"}]})

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"
        }
    ]
}

Viam Service Configuration

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
}

source_image_path

string (required)

The path to the reference image to which other images will be matched against.

min_good_matches

integer (default: 15)

The minimum number of "good" keypoint matches (as determined by Lowe's ratio test).

About

Implements an orb-based feature match detector service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.6%
  • Shell 5.4%
0