logo

特征检测和模板匹配同时调用

2018-05-21 16:29
C
Crystal20160512
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)
2018-05-21 17:39
I
网红小智智 星瞳科技

请问你要问什么?

2018-05-21 18:09
C
Crystal20160512

我想实现:

在特征检测的同时进行模板匹配

就是模板匹配和特征点检测同时调用