前言
无人机拍摄的图像分辨率往往较大,做目标检测时,需要进行裁剪再标注。
本文就来记录从图像裁剪到图像拼接的处理脚本思路。...for _ in labels]
def cv2ImgAddText(img, text, left, top, textColor=(0, 255, 0), textSize=20):
# 图像从...OpenCV格式转换成PIL格式
if isinstance(img, np.ndarray): # 判断是否OpenCV图片类型
img = Image.fromarray(...labels] # 随机颜色
def cv2ImgAddText(img, text, left, top, textColor=(0, 255, 0), textSize=20):
# 图像从...OpenCV格式转换成PIL格式
if isinstance(img, np.ndarray): # 判断是否OpenCV图片类型
img = Image.fromarray(