Fix record rgb888 bug

This commit is contained in:
Kalman 2018-11-28 10:55:27 +08:00
parent b625dca3df
commit 35e069a858

View File

@ -80,7 +80,7 @@ void Dataset::SaveStreamData(
cv::Mat img( cv::Mat img(
data.frame->height(), data.frame->width(), CV_8UC3, data.frame->height(), data.frame->width(), CV_8UC3,
data.frame->data()); data.frame->data());
cv::cvtColor(img, img, CV_BGR2RGB); // cv::cvtColor(img, img, CV_BGR2RGB);
cv::imwrite(ss.str(), img); cv::imwrite(ss.str(), img);
} else { } else {
cv::Mat img( cv::Mat img(