Object Based Image Segmentation: Application to fruit detection in shipping bins