vector<int> compression_params; compression_params.push_back(IMWRITE_PNG_COMPRESSION); compression_params.push_back(3); compression_params.push_back(IMWRITE_PNG_BILEVEL); compression_params.push_back(1); imwrite("text2.png", image1, compression_params);
标签:为位,compression,back,c++,opencv,params,push,png From: https://www.cnblogs.com/nanfei/p/17326722.html