text: import cv2 
  import matplotlib.pyplot as plt 
   
  img = cv2.imread('/data2/qilei_chen/DATA/trans_drone/videos/results1/test.jpg') 
  rows,cols = img.shape[:2] 
  print(rows)
  #第一个参数旋转中心，第二个参数旋转角度，第三个参数：缩放比例 
  M = cv2.getRotationMatrix2D(angle=5, center=(cols/2, rows/2), scale=0.8) 
  #第三个参数：变换后的图像大小 
  res = cv2.warpAffine(img,M,(cols,rows)) 
  
  cv2.imwrite("/data2/qilei_chen/DATA/trans_drone/videos/results1/test1.jpg",res)
  
  