I have written a basic Python code to create an image and then putting a rectangle on the boundaries. This doesn't seem to work. I have checked multiple sites and this is the exact code they use. Don't know what is the issue.
import cv2
import numpy as np
img = Image.new('RGB', (800, 900), color= (171, 183, 255))
cv2.rectangle(img,(1,1),(800,900),(255,0,0),15)
img
I am getting this error
TypeError
<ipython-input-251-4b78f75077e8> in <module>()
4 img = Image.new('RGB', (800, 900), color= (171, 183, 255))
5 # cv2.rectangle(img, 0, 0, 800, 900, (255,0,0))
----> 6 cv2.rectangle(img,(1,1),(800,900),(255,0,0),15)
7 img
TypeError: an integer is required (got type tuple)
Can anyone please help?