利用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
相關文章
相關標籤/搜索