Hi, Maybe you can filter overlapped boxes after found the matches with cv::dnn:NMSBoxes which support RotatedRect(centerPoint, Size, rotatedAngle) .