Method for efficient target detection from images robust to occlusion