def undistort(self, img): return cv2.undistort(img, self.cam_mtx, self.cam_dst, None,self.cam_mtx) # get binary image based on color thresholding