Ask Your Question
1

How to set scan frequency when save jpg using PROGRESSIVE mode

asked 2017-05-24 04:15:23 -0600

s_h1005 gravatar image

updated 2020-09-15 17:04:19 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-24 04:39:49 -0600

berak gravatar image

unfortunately, this is currently not possible.

your compression_params flag just sets a boolean, and it calls jpeg_simple_progression

edit flag offensive delete link more

Comments

Thank you very much.

s_h1005 gravatar images_h1005 ( 2017-05-25 01:09:26 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-05-24 04:15:23 -0600

Seen: 638 times

Last updated: May 24 '17