I need to output the area in pixels for the binary_mole.
mole_1 = mpimg.imread('mole_1.png')
gray_mole = rgb2grey(mole_1)
threshold = skimage.filters.threshold_otsu(gray_mole)
binary_mole = (gray_mole < threshold)
My attempt to find the area in pixels is below
trys = np.sum(binary_mole == 255)
print('number of white pixels = ' , trys)
How do I fix this or go about it?
