I came across this Python script:
fea_det = cv2.xfeatures2d.SIFT_create()
des_ext = cv2.xfeatures2d.SIFT_create()
des_list = []
for image_path in image_paths:
im = cv2.imread(image_path)
kpts = fea_det.detect(im)
kpts, des = des_ext.compute(im, kpts)
des_list.append((image_path, des))
My issue is not related to the meaning of the different variables and parameters, but to how we can read in particular this statement:
kpts, des = des_ext.compute(im, kpts)
What would go in kpts
and des
? What are their data types?