Count number of cells in the image
问题 I need code for counting the number of cells in the image and only the cells that are in pink color should be counted .I have used thresholding and watershed method. import cv2 from skimage.feature import peak_local_max from skimage.morphology import watershed from scipy import ndimage import numpy as np import imutils image = cv2.imread("cellorigin.jpg") gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) thresh = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1] cv2.imshow(