Shadows are viewed as undesired information that strongly affects images. Shadows may cause a high risk to present false color tones, to distort the shape of objects, to merge, or to lose objects. This paper proposes a novel approach for the detection and removal of shadows in an image. Firstly the shadow and non shadow region of the original image is identified by HSV color model. The shadow removal is based on exemplar based image inpainting. Finally, the border between the reconstructed shadow and the non shadow areas undergoes bilinear interpolation to yield a smooth transition between them. They would lead to a better fitting of the shadow and non shadow classes, thus resulting in a potentially better reconstruction quality.