调整dsp设备json
This commit is contained in:
parent
435426afab
commit
08d99ebe1d
File diff suppressed because one or more lines are too long
|
@ -274,10 +274,23 @@ namespace hg_imgproc
|
||||||
mats_.clear();
|
mats_.clear();
|
||||||
auto matexs = split.SplitMats(mats,is_duplex);
|
auto matexs = split.SplitMats(mats,is_duplex);
|
||||||
std::string filename ;
|
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)
|
for(auto &matex : matexs)
|
||||||
{
|
{
|
||||||
cv::flip(matex.mat,matex.mat,0);
|
cv::flip(matex.mat,matex.mat,rotation01_);
|
||||||
cv::flip(matex.mat,matex.mat,1);
|
cv::flip(matex.mat,matex.mat,rotation02_);
|
||||||
|
|
||||||
if(!matex.mat.empty())
|
if(!matex.mat.empty())
|
||||||
mats_.push_back(matex.mat);
|
mats_.push_back(matex.mat);
|
||||||
|
|
Loading…
Reference in New Issue