300设备按照其他设备一样旋转拆分流程
This commit is contained in:
parent
60a74afd5c
commit
a9a8c31237
|
@ -1,4 +1,4 @@
|
||||||
#include "image_process.h"
|
#include "image_process.h"
|
||||||
#include "../wrapper/hg_log.h"
|
#include "../wrapper/hg_log.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -611,7 +611,7 @@ namespace hg_imgproc
|
||||||
{
|
{
|
||||||
cv::flip(matex.mat, matex.mat, rotation01_);
|
cv::flip(matex.mat, matex.mat, rotation01_);
|
||||||
cv::flip(matex.mat,matex.mat,rotation02_);
|
cv::flip(matex.mat,matex.mat,rotation02_);
|
||||||
if (i > 1 && (pid_ == 0x402 || pid_ == 0x100 || pid_ == 0x400 || pid_== 0x302))
|
if (i > 1 && (pid_ == 0x402 || pid_ == 0x100 || pid_ == 0x400 || pid_== 0x302 || pid_ == 0x300))
|
||||||
{
|
{
|
||||||
cv::flip(matex.mat,matex.mat,-1);
|
cv::flip(matex.mat,matex.mat,-1);
|
||||||
}
|
}
|
||||||
|
@ -621,7 +621,7 @@ namespace hg_imgproc
|
||||||
}
|
}
|
||||||
CImageApplyRotation::RotationType rotatetype = CImageApplyRotation::RotationType::Invalid;
|
CImageApplyRotation::RotationType rotatetype = CImageApplyRotation::RotationType::Invalid;
|
||||||
|
|
||||||
if (pid_ == 0x402 || pid_ == 0x400 || pid_ == 0x239 || pid_ == 0x439 || pid_ == 0x302)
|
if (pid_ == 0x402 || pid_ == 0x400 || pid_ == 0x239 || pid_ == 0x439 || pid_ == 0x302 || pid_ == 0x300)
|
||||||
rotatetype = CImageApplyRotation::RotationType::Rotate_90_clockwise;
|
rotatetype = CImageApplyRotation::RotationType::Rotate_90_clockwise;
|
||||||
else if(pid_ == 0x100)
|
else if(pid_ == 0x100)
|
||||||
rotatetype = CImageApplyRotation::RotationType::Rotate_90_anti_clockwise;
|
rotatetype = CImageApplyRotation::RotationType::Rotate_90_anti_clockwise;
|
||||||
|
|
Loading…
Reference in New Issue