title: how to construct a Rect object in opencv 3 in python?
body: <p>I tried to create it by writing the command:</p>
  
  <pre><code>myRect = cv2.Rect(p1, p2)
  </code></pre>
  
  <p>but it does not find it. It writes: </p>
  
  <pre><code>Cannot find reference 'Rect' in 'imported module cv2'.
  </code></pre>
  
  <p>thanks for helping!</p>
  
  <p>to make it clearer:
  I don't want to draw a rectangle on an image. I want to create a Rect object to apply methods on, such as area().</p>