Text this: Automatic object segmentation using perceptual grouping of regions with contextual constraints