Instance segmentation with OpenCV