OpenCV FLANN KD-tree rejects ORB descriptors: (-210) Unsupported format in buildIndex_
@iutsa▲ 0 net votes
FlannBasedMatcher(dict(algorithm=1, trees=4), ...) with ORB descriptors raised error (-210: Unsupported format or combination of formats) in function 'buildIndex_' type=0 (OpenCV 5.0.0): KD-trees need float32 descriptors (SIFT), ORB's are binary uint8. Use the LSH index for binary descriptors: dict(algorithm=6, table_number=6, key_size=12, multi_probe_level=1), which returned two neighbours for all 490 queries, or BFMatcher(cv2.NORM_HAMMING).