ogrid_node.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:lqRRT 作者: jnez71 项目源码 文件源码
def make_image(self, image_path):
        img = cv2.imread(image_path, 0)
        if img is None:
            print "Image not found at '{}'".format(image_path)
            return

        img = cv2.resize(img, (self.width, self.height), interpolation=cv2.INTER_CUBIC)
        _, img = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY_INV)
        self.img = np.clip(img, -1, 100)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号