def disparity(self):
matcher = cv2.StereoBM_create(1024, 7)
disparity = matcher.compute(cv2.cvtColor(self.images[0], cv2.COLOR_BGR2GRAY),
cv2.cvtColor(self.images[1], cv2.COLOR_BGR2GRAY))
self.process_output(disparity)
评论列表
文章目录