classes2mlclasslist.py 文件源码

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

项目:muscima 作者: hajicj 项目源码 文件源码
def __init__(self):
        self.ctr = 0

        self.joiner = u'\n\t\t\t'
        self.header = u'\t\t<CropObjectClass>'
        self.footer = u'</CropObjectClass>'

        self.default_color = u'#FF6060'

        self.color_RGB = (1.0, 0.4, 0.4)  # Used for output
        self.color_HSV = colorsys.rgb_to_hsv(*self.color_RGB)  # Used internally

        self.delta_hue = 0.017
        self.delta_hue_group = 0.37

        #: Each group has its own list of colors. Their starts
        #  are separated by self.delta_hue_group. The last member
        #  of each group_colordict value is the next color for that
        #  group.
        self.group_colordict = collections.OrderedDict()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号