Image segmentation in python
问题 I have the image I am looking for python solution to break the shape in this image into smaller parts according to the contour in the image. I have looked into solution on Canny and findContours in OpenCV but none of them works for me. Edit: Code used: using Canny method import cv2 import numpy as np img = cv2.imread('area_of_blob_maxcontrast_white.jpg') edges = cv2.Canny(img, 100, 200) cv2.imwrite('area_of_blob_maxcontrast_white_edges.jpg',edges) using findContours method import numpy as np