<p>I think that this paper <a href="https://arxiv.org/pdf/1703.06870.pdf" rel="nofollow noreferrer">Mask R-CNN</a> will also help you. If you want to be able of doing extraction of cars you have to train using a lot of training data of different cars, diferent angles, multiple cars in one picture.</p>

<p>Here and implementation using keras: <a href="https://github.com/broadinstitute/keras-rcnn/tree/master/keras_rcnn" rel="nofollow noreferrer">Mask RCNN</a><a href="https://i.stack.imgur.com/WbthR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WbthR.png" alt="enter image description here"></a></p>
Car (object) extraction from a image
<p>How will I proceed with the extraction of the whole car from an image containing a front, side or rear views, keeping in account of the shadows, other distant cars in the image and different types of cars (hatchback, sedan, etc.)?  </p>

<p>The car in the image will be front, rear or either sides. That is fixed.
Car models can be different with varying colors and background.</p>

<p>I have researched on
- Edge Detection Algorithms (<a href="https://en.wikipedia.org/wiki/Sobel_operator" rel="nofollow noreferrer">Sobel</a>, <a href="https://en.wikipedia.org/wiki/Canny_edge_detector" rel="nofollow noreferrer">Canny</a>),<br>
reading about the <a href="https://en.wikipedia.org/wiki/Scale-invariant_feature_transform" rel="nofollow noreferrer">Scale-Invariant Feature Transform</a> for Feature Extraction.  </p>

<p>Am I going in the right direction ?  </p>

<p>Sample Images :  </p>

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

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

<p>Following results using Canny Edge Detection -  </p>

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

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

<p>How to extract the car after the edge detection ?</p>