<p>You want object detection and segmentation. For that check out the excellent work done by Kaiming He et al:</p>

<ul>
<li><a href="https://arxiv.org/pdf/1703.06870" rel="nofollow noreferrer">Paper</a></li>
<li><a href="https://github.com/facebookresearch/Detectron" rel="nofollow noreferrer">Code</a></li>
</ul>

<p>Their work (Mask R-CNN) has also been ported to TensorFlow.</p>

<ul>
<li><a href="https://github.com/CharlesShang/FastMaskRCNN" rel="nofollow noreferrer">TensorFlow Mask R-CNN</a></li>
<li><a href="https://github.com/matterport/Mask_RCNN" rel="nofollow noreferrer">Mask R-CNN on Python 3, Keras, and TensorFlow</a></li>
</ul>

<p><a href="https://i.stack.imgur.com/Gc15l.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gc15l.jpg" alt="Demo"></a></p>
recognize object on the image and take it out
<p>I have the image with some object on it - person, vehicle, building or some manually set object. For example assuming I have this image</p>

<p><a href="https://i.stack.imgur.com/uC8qK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uC8qK.jpg" alt="enter image description here"></a></p>

<p>I want to take out a house from it</p>

<p><a href="https://i.stack.imgur.com/D6AZE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D6AZE.png" alt="enter image description here"></a></p>

<p>Can I achieve that using Microsoft Cognitive API and Azure though some custom vision service? Or I should go OpenCV route and others...</p>