Component based object detection