← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258390]: Sikuli - Scale Invariant Template Matching

 

Question #258390 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258390

    Status: Open => Answered

RaiMan proposed the following answer:
Sikuli currently still uses the OpenCV::matchTemplate() function in the
C++ native level, to search for a pixel rectangle B in a given image A
(both are CV::Mats generated from java buffered images).

B is only found in A, if this contains a similar/equal pixel rectangle of the same size. The matchTemplate() returns a CV::Mat, that contains a score value between 0 and 1, that is a measure for the similarity of the pixel rectangle with the pixel as top-left corner with the given B.
So this is strictly pixel by pixel.

currently neither scaled nor rotated occurrences of B in A are searched
and hence not found.

If you want to look at the implementation:
version 1.1.0 contains the current C++ implementation as well as an implementation of the same features directly from Java to the OpenCV-Java-Api (class ImageFinder), that will replace the C++ implementation in version 1.2
see: https://github.com/RaiMan/SikuliX-2014

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.