利用opencv对图像和检测框做任意角度的旋转

钢筋比赛中的数据扩充  #coding:utf-8 #数据集扩增 import cv2 import math import numpy as np import xml.etree.ElementTree as ET import os def rotate_image(src, angle, scale=1): w = src.shape[1] h = src.shape[0
相关文章
相关标签/搜索