调整G300 G400 正反面出图顺序

This commit is contained in:
lovelyyoung 2020-11-12 19:36:50 +08:00
parent d04656ae74
commit 1f3e117915
1 changed files with 6 additions and 6 deletions

View File

@ -297,12 +297,12 @@ void ImageMatQueue::proc()
//cv::imwrite("D:\\org"+to_string(++index)+".jpg", mat); //cv::imwrite("D:\\org"+to_string(++index)+".jpg", mat);
Mat front = mat(Rect(0, 0, mat.cols / 2, mat.rows)); Mat front = mat(Rect(0, 0, mat.cols / 2, mat.rows));
Mat back = mat(Rect(mat.cols / 2, 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) { if (scanParam.imageRotateDegree != 0.0&&scanParam.imageRotateDegree!=180.0) {
// cv::flip(front, front, 0); cv::flip(front, front, 0);
// cv::flip(front, front, 1); cv::flip(front, front, 1);
//} }
mats.push_back(front);
mats.push_back(back); mats.push_back(back);
mats.push_back(front);
#endif #endif
} }
@ -340,7 +340,7 @@ void ImageMatQueue::proc()
writelog("enqueue image is empty " + std::to_string(index++)); 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) { if (scanParam.multi_output_red) {
for (int i = 0; i < mats.size(); i++) { for (int i = 0; i < mats.size(); i++) {
if (!mats[i].empty()) { if (!mats[i].empty()) {