Я пытаюсь обновить свой код, чтобы использовать cv2.SURF()
, а не cv2.FeatureDetector_create("SURF")
и cv2.DescriptorExtractor_create("SURF")
. Однако у меня возникают проблемы с получением дескрипторов после обнаружения ключевых точек. Какой правильный способ вызвать SURF.detect
?
Я пробовал следовать документации OpenCV, но я немного смущен. Об этом говорится в документации.
Python: cv2.SURF.detect(img, mask) → keypoints¶
Python: cv2.SURF.detect(img, mask[, descriptors[, useProvidedKeypoints]]) → keypoints, descriptors
Как передать ключевые точки при выполнении второго вызова SURF.detect
?