摘要:
''' cv2在图像上画不同比例的锚框 ''' import cv2 import math # 画宽高比1:1的锚框 def display_11_anchor(img,anchor_11_left_top,anchor_11_right_bottom): cv2.rectangle(img, a 阅读全文
posted @ 2021-11-04 15:17
gy77
阅读(164)
评论(0)
推荐(0)
摘要:
''' PIL.Image, numpy, tensor, cv2 之间的互转 ''' import cv2 import torch from PIL import Image import numpy as np from torchvision import transforms img_pa 阅读全文
posted @ 2021-11-04 15:06
gy77
阅读(856)
评论(0)
推荐(0)

浙公网安备 33010602011771号