How crop a part of image if it is white and more than 10 pixels wide

前端 未结 0 1637
心在旅途
心在旅途 2020-12-12 23:21

Here is the code:

low = np.array([140, 140, 140])
high = np.array([255, 255, 255])

mask = cv2.inRange(img1, low, high)
mask_off = cv2.threshold(mask, 10, 255         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题