opencv的Mat数据和JPG数据的相互转化

Mat 一个图像数据转化为jpg图片buffer 压缩率能够变为原来的 1/ 15 - 1 / 10 Mat2Img.hweb #ifndef MAT2IMG_H #define MAT2IMG_H #include "opencv2/opencv.hpp" #include <vector> #include "image_base64.h" class Mat2Img { publ
相关文章
相关标签/搜索