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).
2 | No.2 Revision |
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).