您可以使用 rotatedRectangleIntersection 函数:cv::rotatedRectangleIntersection ( const RotatedRect & rect1, const RotatedRect & rect2, OutputArray intersectingRegion )