How to set scan frequency when save jpg using PROGRESSIVE mode
I saved jpg using PROGRESSIVE mode, this is my code:
Mat img = imread("input.jpg");
vector<int>compression_params;
compression_params.push_back(IMWRITE_JPEG_PROGRESSIVE);
compression_params.push_back(1);
imwrite("out.jpg",img, compression_params);
Then I opened out.jpg by UltraEdit . I found that "FF DA" appeared 10 times , which meant that the scan time was 10 . How to change the scan time in OpenCV?