我需要分割水稻植株中的病害部分brown spot disease,i have attached one image also 我在cv2resulted image中使用HSV模式的色调分量和OTSU来分割病变部分,有人能给我一个分步的通用策略(甚至是python代码)来准确地分割病变部分吗。 这就是我正在尝试的。你知道吗
img=cv2.imread('3.jpg')
img=cv2.cvtColor(img,cv2.COLOR_BGR2HSV)
h,s,v=cv2.split(img)
th=0
ret,out1=cv2.threshold(h,th,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
plt.imshow(out1,cmap='gray',interpolation='bicubic')
plt.xticks([])
plt.yticks([])
plt.show()
目前没有回答
相关问题 更多 >
编程相关推荐