How does SikuliX use OpenCV matchTemplate()?

Asked by Alexc on 2017-08-03

For sikuli, I hear it uses opencv under the hood. With that assumption, which of the method matching is used on the page:
http://docs.opencv.org/master/df/dfb/group__imgproc__object.html#ga586ebfb0a7fb604b35a23d85391329be

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-08-03
Last reply:
2017-08-04
Alexc (alexnospam123) said : #1

Also, for multiple matches, how does sikuli loop through the results array that is set when matchTemplate()
 is called? Is it pure brute force of lopping through each pixel in the result Mat and seeing if the values are at a certain threshold and extracting the pixel if it is a match?

Can you help with this problem?

Provide an answer of your own, or ask Alexc for more information if necessary.

To post a message you must log in.