detector.detectAndCompute()Why is it time-consuming to start?

asked 2019-04-29 02:37:58 -0500

hongjq gravatar image

updated 2019-04-29 07:19:42 -0500

supra56 gravatar image

Here is snippet code:

detector = cv.ORB_create()
norm = cv.NORM_HAMMING
matcher = cv.BFMatcher(norm)
kp1, desc1 = detector.detectAndCompute(img1, None)
kp2, desc2 = detector.detectAndCompute(img2, None)
matches = matcher.knnMatch(desc1, trainDescriptors=desc2, k=2)

detector.detectAndCompute()Time consuming? Why is the first matching time-consuming and the subsequent image matching time-consuming?

edit retag flag offensive close merge delete