调整dsp设备json

This commit is contained in:
13038267101 2022-07-05 18:01:10 +08:00
parent 435426afab
commit 08d99ebe1d
2 changed files with 17 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -264,7 +264,7 @@ namespace hg_imgproc
return SCANNER_ERR_OK;
}
int split(int multioutputtype,bool is_msplit,bool is_multiout_red,int colortype,bool is_duplex)
{
std::vector<cv::Mat> mats(mats_);
@ -274,10 +274,23 @@ namespace hg_imgproc
mats_.clear();
auto matexs = split.SplitMats(mats,is_duplex);
std::string filename ;
int rotation01_ = 0;
int rotation02_ = 0;
if(pid_ == 0x139 || pid_ == 0x239 || pid_ == 0x100 || pid_ == 0x200)
{
rotation01_ = 0;
rotation02_ = 1;
}
else if(pid_ == 0x300 || pid_ == 0x400)
{
rotation01_ = 1;
rotation02_ = 1;
}
for(auto &matex : matexs)
{
cv::flip(matex.mat,matex.mat,0);
cv::flip(matex.mat,matex.mat,1);
cv::flip(matex.mat,matex.mat,rotation01_);
cv::flip(matex.mat,matex.mat,rotation02_);
if(!matex.mat.empty())
mats_.push_back(matex.mat);