Combine¶
blend_images¶
- def blend_images(img1, img2, alpha=0.5):
“”” Blend two images with alpha as ratio
“”“
overlay_contour¶
- def overlay_contour(img, np_arr, rgb=(255, 0, 0), cnt_width=1):
“”“Overlay contour on image.
“”“
overlay_bbox¶
- def overlay_bbox(im, boxes, rgb, stroke=1):
“”“Overlay bounding boxes on image.
“”“
overlay_box_label¶
- def overlay_box_label(img, boxes, labels):
“”” Overlay paired boxes and lables on image.
“”“
stackgray2rgb¶
- def stackgray2rgb(gray):
“”“Stack three same gray image to rgb image.
“”“