-
Notifications
You must be signed in to change notification settings - Fork 852
Template match methods: Accept matrix #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 for this. Also a big downside for not able to accept matrix or a buffer is that we cannot first process the image then matchTemplate it. If I want to convert to grayscale or do canny edge then matchtemplate to reduce the possibility of false positive, right now we need to first write to a file then passing it to the c++ library |
@Evilcat325: This may be of course only a workaround - |
@strarsis I just submit a pull request with unit test, hope it get merged~ |
Uh oh!
There was an error while loading. Please reload this page.
Sometimes a template image has to be matched multiple times.
The current implementations of the template matching methods expect a file path.
Passing a matrix (e.g. from readImage(...)) as argument will not work and
results in an (unrelated) assertion failure.
Because the file data could actually come from many different places and through different ways,
it would make more sense to remove the path loading feature from the template matching methods
and rather let them exclusively accept a matrix instead.
The text was updated successfully, but these errors were encountered: