Contextualizing object detection and classification