更新畸变算法

This commit is contained in:
13038267101 2023-03-01 11:04:07 +08:00
parent c31a80d5ea
commit f6c7e01854
1 changed files with 17 additions and 0 deletions

View File

@ -89,6 +89,23 @@ int CISTestImageProcess::test(const cv::Mat& image, CISTestResult& result)
box.size.width = box.size.height;
box.size.height = temp;
}
if (box.angle < -45)
{
box.angle += 90;
float temp = box.size.width;
box.size.width = box.size.height;
box.size.height = temp;
}
if (box.angle > 45)
{
box.angle -= 90;
float temp = box.size.width;
box.size.width = box.size.height;
box.size.height = temp;
}
if (box.angle > 45)
{
box.angle -= 90;