前序
aircv是codeskyblue 基于python-opencv2在 https://github.com/NetEaseGame/aircv提交的库,是一款基于Python-opencv2的目标定位。codeskyblue于2017年4月24日最后一次更新支持opencv3。我个人很喜欢这个库,可以实现从一张图中找出局部特征图,可以找多图。
用法示例
import aircv as ac
imsrc = ac.imread('youimage.png') # 原始图像
imsch = ac.imread('searched.png') # 带查找的部分
1.SIFT查找图像
print ac.find_sift(imsrc, imsch)
# - when Not found
@return None
# 之前是返回的 []
# - when found
@return {'point': (203, 245), 'rectangle': [(160, 24), (1