摘要: # lower_yellow = np.array([12, 230, 230]) # 黄色阈值下界lower_yellow = np.array([12, 43, 43]) # 黄色阈值下界higher_yellow = np.array([35, 255, 255]) # 黄色阈值上界lower 阅读全文
posted @ 2022-05-27 20:00 山…隹 阅读(443) 评论(0) 推荐(0) 编辑
摘要: ## 读取图像,解决imread不能读取中文路径的问题 def cv_imread(filePath): # 核心就是下面这句,一般直接用这句就行,直接把图片转为mat数据 cv_img=cv2.imdecode(np.fromfile(filePath,dtype=np.uint8),-1) # 阅读全文
posted @ 2022-05-27 16:22 山…隹 阅读(181) 评论(0) 推荐(0) 编辑