Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question

How to set scan frequency when save jpg using PROGRESSIVE mode

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

s_h1005 gravatar image

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

I saved jpg using PROGRESSIVE mode, this is my code:

Mat img = imread("input.jpg");
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

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

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


Thank you very much.

s_h1005 gravatar images_h1005 ( 2017-05-25 01:09:26 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 320 times

Last updated: May 24 '17