Improving object detection quality with structural constraints