Image processing and object detection pipeline