特征检测和模板匹配同时调用
-
def findtemplate_init(): sensor.reset() sensor.set_contrast(1) sensor.set_gainceiling(16) sensor.set_framesize(sensor.QQVGA) sensor.set_pixformat(sensor.GRAYSCALE) def findkpts_init(): sensor.reset() sensor.set_contrast(3) sensor.set_gainceiling(16) sensor.set_framesize(sensor.VGA) sensor.set_windowing((320, 240)) sensor.set_pixformat(sensor.GRAYSCALE) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False, value=100) kpts1 = None kpts1 = image.load_descriptor("/desc.orb") # A kpts2 = img.find_keypoints(max_keypoints=160, threshold=8, normalized=True) if (kpts2): match = image.match_descriptor(kpts1, kpts2, threshold=90)
-
请问你要问什么?
-
我想实现:
在特征检测的同时进行模板匹配就是模板匹配和特征点检测同时调用