title: Using OpenCV, how to blur a part of an image?
body: <p>I am using <code>inRange()</code> function of <code>OpenCV4Android</code> to detect a colored blob in an image. Then I am using <code>drawContours()</code> to draw the contours around the selected object. </p>
  
  <p>What I want is that when the contour is drawn, the image <em>outside</em> the contour (i.e. the part which is not a part of the contour or detected colored blob/object) should get a little blur. </p>
  
  <p>How can I do that? I am not asking necessarily for code. If you can tell me what function(s) to use, or how to go about it, I'll look into the API's and do it. Thank you.</p>
  
  <p><a href="https://i.stack.imgur.com/I3ym7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I3ym7.jpg" alt="enter image description here"></a></p>