Mat 转 QString

Mat image = imread("c:\\abcd.jpg");

stringstream stream;

stream << image;

QString mat_str = QString::fromStdString(stream.str());

你可能感兴趣的:(计算机视觉,python,opencv)