示例#1
0
文件: utils.py 项目: lykius/bdd-yolo
def draw_outline(patch: patches.Patch, lw: int) -> None:
    stroke = patheffects.Stroke(linewidth=lw, foreground='black')
    normal = patheffects.Normal()
    patch.set_path_effects([stroke, normal])
示例#2
0
def _draw_outline(o:Patch, lw:int):
    "Outline bounding box onto image `Patch`."
    o.set_path_effects([patheffects.Stroke(
        linewidth=lw, foreground='black'), patheffects.Normal()])