title: How to save the drawn rectangle in OpenCV?
body: <p>I'm very new to OpenCV and I'm working on a Video,  where I have to detect moving objects and draw a rectangle around the object. I have to draw rectangles for each object that is being detected. I drew the rectangle using the code below. Now I want to save the rectangle, can someone please tell me how to save the rectangle as image ? </p>
  
  <p>The code is </p>
  
  <pre><code>rectangle( frameSequence, Point( x-20, y+20), Point( x+20, y-20), Scalar( 0, 55, 255 ), +1, 4 );
  </code></pre>