title: TypeError: function takes exactly 4 arguments (2 given) in cv2.rectangle function
body: <p>I know all the solutions on the internet say to give integer co-ordinates but that isn't working for me.</p>
  <pre><code>def box(x,y,w,h):
      print(x,y,w,h)
      print(type(x),type(y),type(w),type(h))
      cv2.rectangle(image, (int(x),int(y)) , (int(x+w),int(y+h)) , (255,0,0) , 2.0) ----&gt; error
  
  for i in indices.flatten():
      x,y,w,h = boxes[i][0],boxes[i][1],boxes[i][2],boxes[i][3]
      box(int(x),int(y),int(w),int(h))    
  </code></pre>
  <p>Output of debug</p>
  <pre><code>414 1308 53 404
  &lt;class 'int'&gt; &lt;class 'int'&gt; &lt;class 'int'&gt; &lt;class 'int'&gt;
  </code></pre>
  <p>Python version - 3.7.0
  OpenCv version - 4.4.0.42</p>