just to save works and use another computer to code

This commit is contained in:
hyb1996
2017-11-27 21:11:49 +08:00
parent 00c972ce8c
commit 9951ffae7a
30 changed files with 780 additions and 72 deletions

View File

@@ -85,10 +85,11 @@ module.exports = function(__runtime__, scope){
options = options || {};
var threshold = options.threshold || 0.9;
var maxLevel = options.level || -1;
var weakThreshold = options.weakThreshold || 0.7;
if(options.region){
return rtImages.findImage(img, template, threshold, buildRegion(options, img), maxLevel);
return rtImages.findImage(img, template, weakThreshold, threshold, buildRegion(options, img), maxLevel);
}else{
return rtImages.findImage(img, template, threshold, null, maxLevel);
return rtImages.findImage(img, template, weakThreshold, threshold, null, maxLevel);
}
}