A utility function for extracting bounding boxes of detected landmarks.