megafacade.py 文件源码

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

项目:facade-segmentation 作者: jfemiani 项目源码 文件源码
def plot(self):
        import pylab as pl
        ax = pl.gca()

        pl.hlines(self.tops, self.left, self.right, linestyles='dashed', colors='blue')
        pl.hlines(self.tops + self.heights, self.left, self.right, linestyles='dashed', colors='green')
        pl.vlines(self.lefts, self.top, self.bottom, linestyles='dashed', colors='blue')
        pl.vlines(self.lefts + self.widths, self.top, self.bottom, linestyles='dashed', colors='green')

        for box in self.rectangles:
            t, l, b, r = box
            patch = pl.Rectangle((l, t), r - l, b - t, color='blue', fill=True, alpha=0.5)
            ax.add_patch(patch)
        pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号