二值化后,如何去除其他杂点,我只要正中间区域,如何获取正中间区域的ROI,如何是的这个区域周围边界圆滑不是锯齿状
-
import pyb, sensor, image, math sensor.reset() sensor.set_framesize(sensor.QVGA) sensor.set_pixformat(sensor.GRAYSCALE) low_threshold = (0, 50) while(True): for i in range(100): img = sensor.snapshot() img.binary([low_threshold])
-
获取中间的,直接find_blobs就行。https://singtown.com/learn/49993/