- 博客(1)
- 收藏
- 关注
原创 阈值的切割--基于opencv
import cv2 import matplotlib.pyplot as plt # 灰度图读入 img = cv2.imread('jiao.png', 0) # 阈值分割 ret, th = cv2.threshold(img, 131, 255, cv2.THRESH_BINARY) # cv2.imshow('thresh', th) # cv2.waitKey(0) # 应用5种不同的阈值方法 ret, th1 = cv2.threshold(img, 131, 255, cv2.T
2020-11-21 17:51:52 256
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人