如何在opencv android中设置ORB特征检测器参数 通常,在C++的OpenCV中,Wr.T集合参数没有问题,

如何在opencv android中设置ORB特征检测器参数 通常,在C++的OpenCV中,Wr.T集合参数没有问题,,opencv,object-detection,orb,Opencv,Object Detection,Orb,但在安卓opencv中,我无法获得有关这方面的信息 有人能帮我解决这个问题吗?您可以加载一个包含参数的外部文件。例如,首先使用参数创建一个.yml文件 %YAML:1.0 scaleFactor: 1.1 nLevels: 5 firstLevel: 0 edgeThreshold: 31 patchSize: 31 然后,一旦创建了ORB Feature detector的实例,就可以像下面这样读取.yml文件的参数: FeatureDetector detector = FeatureDe

但在安卓opencv中,我无法获得有关这方面的信息


有人能帮我解决这个问题吗?

您可以加载一个包含参数的外部文件。例如,首先使用参数创建一个.yml文件

%YAML:1.0
scaleFactor: 1.1
nLevels: 5
firstLevel: 0
edgeThreshold: 31
patchSize: 31
然后,一旦创建了ORB Feature detector的实例,就可以像下面这样读取.yml文件的参数:

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.read("your_path_to_yml_file");