opencv match score isn't eqaul on android with Sikulix onPC
I tried to use opencv matchTemplate to repeat the result of Sikuli Finder.
The opencv version is 2.4.10 (OpenCV-
And the code is
Mat img = Highgui.
Mat img2 = Highgui.
Mat res = new Mat();
Log.i(TAG, "maxVal = " + m.maxVal);
Log.i(TAG, "maxLoc = " + m.maxLoc.x + "," + m.maxLoc.y);
and the output is
maxVal = 0.9522626996040344
maxLoc = 648.0,583.0
And the following codes is used in Sikulix version 2015-01-
f = Finder(
f.find("war.png" )
if (f.hasNext()):
m = f.next()
print m
print m.getScore()
print m.x, m.y
The result is
M[648,582 88x34]@S(S(0)[0,0 1920x1080]) S:0.92 C:692,599 [0/0 msec]
0.919825851917
648 582
The score and location are different between opencv on Android and Sikulix.
Would you please help on solving the difference?
Is the opencv usage the same as Sikulix's?
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask WeiHun Huang for more information if necessary.