Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ok, you found a bug, those constants were not properly mapped to the c++ interface (thus ignored by the python wrapper)

actually it's just a simple enum (imgproc/types_c.h):

/* Shape matching methods */
enum
{
    CV_CONTOURS_MATCH_I1  =1,
    CV_CONTOURS_MATCH_I2  =2,
    CV_CONTOURS_MATCH_I3  =3
};

so, use the numerical values for now (1 in your case).

ok, looks like you found a bug, those constants were not properly mapped to the c++ interface (thus ignored by the python wrapper)

actually it's just a simple enum (imgproc/types_c.h):

/* Shape matching methods */
enum
{
    CV_CONTOURS_MATCH_I1  =1,
    CV_CONTOURS_MATCH_I2  =2,
    CV_CONTOURS_MATCH_I3  =3
};

so, use the numerical values for now (1 in your case).