OpenCV string 转 图片
std::string strPicture = “...”;
cv::Mat mat2(1, strPicture.size(), CV_8U, (char*)strPicture.data());
cv::Mat psrc = cv::imdecode(mat2, CV_LOAD_IMAGE_COLOR);
cv::Mat dst;
psrc.convertTo(dst, CV_8UC3);
cv::cvtColor(dst,dst,CV_BGR2RGB);
QImage pixmap((c.
原创
2022-01-12 08:55:00 ·
1515 阅读 ·
0 评论