更新畸变算法
This commit is contained in:
parent
c31a80d5ea
commit
f6c7e01854
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue