passing index Parameters for Flann matcher using opencv on android -
i'm trying customize flann matcher in opencv editing index parameters, i'm using java android, , don't know how works.
found answer don't know how apply in correct way here code i've tried
string yamlparam="%yaml:1.0\n" + "indexparams:\n" + " -\n" + " name: algorithm\n" + " type: 23\n" + " value: 1\n" + " -\n" + " name: trees\n" + " type: 4\n" + " value: 4\n"; file outputf = file.createtempfile("flannfdetectorparams", ".yaml", outputdir); writetofile(outputf,yamlparam); descriptormatcher.read(outputf.getpath());
and here's error i'm getting
opencv error: assertion failed (sp.type() == filenode::seq) in virtual void cv::flannbasedmatcher::read(const cv::filenode &)
you have use full format of yml configuration file:
%yaml:1.0 --- format: 3 indexparams: - name: algorithm type: 23 value: 1 - name: trees type: 4 value: 4 searchparams: - name: checks type: 4 value: 32 - name: eps type: 5 value: 0. - name: sorted type: 15 value: 1
Comments
Post a Comment