摘要:
''' cv2在图像上画不同比例的锚框 ''' import cv2 import math # 画宽高比1:1的锚框 def display_11_anchor(img,anchor_11_left_top,anchor_11_right_bottom): cv2.rectangle(img, a 阅读全文
摘要:
''' PIL.Image, numpy, tensor, cv2 之间的互转 ''' import cv2 import torch from PIL import Image import numpy as np from torchvision import transforms img_pa 阅读全文