diff --git a/huagao/Device/ImageMatQueue.cpp b/huagao/Device/ImageMatQueue.cpp index 8eaae9b9..6196e173 100644 --- a/huagao/Device/ImageMatQueue.cpp +++ b/huagao/Device/ImageMatQueue.cpp @@ -297,12 +297,12 @@ void ImageMatQueue::proc() //cv::imwrite("D:\\org"+to_string(++index)+".jpg", mat); Mat front = mat(Rect(0, 0, mat.cols / 2, mat.rows)); Mat back = mat(Rect(mat.cols / 2, 0, mat.cols / 2, mat.rows)); - //if (scanParam.imageRotateDegree != 0.0&&scanParam.imageRotateDegree!=180.0) { - // cv::flip(front, front, 0); - // cv::flip(front, front, 1); - //} - mats.push_back(front); + if (scanParam.imageRotateDegree != 0.0&&scanParam.imageRotateDegree!=180.0) { + cv::flip(front, front, 0); + cv::flip(front, front, 1); + } mats.push_back(back); + mats.push_back(front); #endif } @@ -340,7 +340,7 @@ void ImageMatQueue::proc() writelog("enqueue image is empty " + std::to_string(index++)); } } - //FileTools::write_log("E:\\Users\\huago\\Desktop\\2.txt", "image output time eplsed: " + std::to_string(sw.elapsed_ms())); + if (scanParam.multi_output_red) { for (int i = 0; i < mats.size(); i++) { if (!mats[i].empty()) {