这是我试过的代码,请给我解决方案。
import numpy as np
import pylab
import mahotas as mh
from matplotlib import pyplot as plt
import cv2
dna = mh.imread('C:\Users\user!\Desktop\images\logo.png')
pylab.imshow(dna)
rows,cols = dna.shape
M = cv2.getRotationMatrix2D((cols/2,rows/2),90,1)
dst = cv2.warpAffine(dna,M,(cols,rows))
错误:
ValueError: too many values to unpack