title: Python OpenCV cv2 drawing rectangle with text
body: <p>I draw a rectangle on my image using</p>
  <pre><code>cv2.rectangle(frame,(x,y),(x1,y1),(0,255,0),2)
  </code></pre>
  <p>I would like to draw rectangles with text information on them. How do I do it? Are there any ready to use implementations available? Or should I match the top left coordinate of the rectangle and try to display a different cv2 text element with the cv2 rect element?</p>
  <p>Can you direct me to any code implementation/workaround?</p>
  <p>P.S: I don't want to use the object_detection. visualisation utils available with tf.</p>
  <p><a href="https://i.stack.imgur.com/bIoCS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bIoCS.png" alt="enter image description here" /></a></p>