请问你解决了吗?
M
mzqc
@mzqc
0
Reputation
6
Posts
64
Profile views
0
Followers
0
Following
Posts made by mzqc
-
特征点识别,想让他循环识别的同时不影响摄像头拍摄的画面
特征点识别,想让他循环识别的同时不影响摄像头拍摄的画面,应该怎么写才能实现呢?用time.sleep放在循环里会导致snapshot跟着延时,有什么实现方法吗?
kpts1 = image.load_descriptor("/panda.orb") kpts2 = image.load_descriptor("/phone.orb") print(1) while(True): img = sensor.snapshot() kpts = img.find_keypoints(max_keypoints=150, threshold=10, scale_factor=1.2) print(2) match1 = image.match_descriptor(kpts, kpts1, threshold=85) if (match1.count()>6): print(3) match2 = image.match_descriptor(kpts, kpts2, threshold=85) if (match2.count()>6): print(4) time.sleep(2)