Skip to content
Advertisement

Tag: image-segmentation

Unable to generate contour on segmented image using OpenCV based on a specific color(cv2.inRange)

I have a segmented image, which is output of an AI model.The next step is to create contour and overlay on the original image(non segmented)using OpenCV around a specific color on the segmented image. I tried with the below code snippet. But unfortunately I am unable to generate mask and contour which returns empty array. Any leads would be appreciated

Advertisement