Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

getRotationMatrix2D gives error

$
0
0
The python function getRotationMatrix2D as follows center = tuple(np.array(image.shape)/2) rot_mat = cv2.getRotationMatrix2D(center,angle,1.0) result = cv2.warpAffine(image, rot_mat, image.shape,flags=cv2.INTER_LINEAR) gives this error Traceback (most recent call last): File "C:\Users\zeeshan khan\Desktop\opencv\Code\Python\rotate.py", line 13, in rot_mat = cv2.getRotationMatrix2D(center,angle,1.0) TypeError: function takes exactly 2 arguments (3 given)

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>