FastFindImage(name, threshold)

  • 找图
  • name 图片名称
  • threshold 相似度阈值
  • 返回值 List<Match>
var list = FastFindImage('测试', 0.5)
for (match in list) {
    Console.log(match)
}

Match

  • 图片匹配结果
  • Match.similarity 相似度
  • Match.point 位置信息
  • Match.point.x 左上角x坐标
  • Match.point.y 左上角y坐标

FastFindImages(names, threshold, func)

  • 多张图片一起找
  • names 名称数组
  • threshold 相似度阈值
  • func(name,matchs) 回调函数,name图片名称,matchs匹配到的结果集
FastFindImages(['微信', 'QQ'], 0.5, (name, list)=>{
    // TODO
})