A line-segment-based non-maximum suppression method for accurate object detection