StructuredForests icon indicating copy to clipboard operation
StructuredForests copied to clipboard

Trained model ported to yml is not compatible with pDollar implementation existing on <opencv2/ximgproc.hpp>

Open spacerober opened this issue 6 years ago • 0 comments

Hello,

I run the example from Opencv implementation https://docs.opencv.org/3.1.0/d0/da5/tutorial_ximgproc_prediction.html , with the model I provided in this repo (StructuredForests/model/forests/forest.h5) . For that, I created a python code to convert forests in h5 format to yml https://github.com/spacerober/foresth5toyml/blob/master/storeYaml.ipynb, which is correctly parsed by detectEdges function, but the result of detected edges is not correct.

Expected result: pdollar

Obtained result: ArtanisCV

I found out that in yml there exist: childs (cids), featureIds (fids), thresholds (thrs), edgeBoundaries (edge_bnds), edgeBins (?)

Does edge_pts calculation in ArtavisCV's implementation differ from edgeBins calculation in pDollar's implementation?

Is there any tool to convert forests in h5 to yml?

spacerober avatar Aug 07 '19 14:08 spacerober