Skip to content

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

@spacerober

Description

@spacerober

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions