1 | initial version |
Hi, check the parameter you put into cv::fillPoly(...). In the documentations of fillPoly other types are used as in your code.
An example how to use fillPoly can be found in the opencv tutorials section here. There is also a question on stackoverflow regarding on how to draw a contour / polygon (using cv::fillPoly(...)).