draw.py 文件源码

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

项目:Vehicle_ReID 作者: starimpact 项目源码 文件源码
def drawText_Color(cimg, txt, posxy, fz, color):
    ttFont0 = ImageFont.truetype(fontfile, fz)
    im = Image.fromarray(cimg, 'RGB')
    drawable = ImageDraw.Draw(im)
    drawable.text((posxy[0], posxy[1]), txt, fill=color, font=ttFont0)
    npimg = np.asarray(im)

    return npimg
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号