Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to compress JP2 file with OpenCV

Hello,

I am forced to deal with JP2 images for this case.

Here is the process : - Original image : 59Ko. - Converting to JPG for doing OpenCV things faster : 32Ko. - Converting back to JP2 : 170Ko.

I "convert" using the cv2.imwrite function.

From here, how to compress with OpenCV this JP2 image ?

Thank you for your help.

How to compress JP2 file with OpenCV

Hello,

I am forced to deal with JP2 images for this case.

Here is the process : - :

  • Original image : 59Ko. - 59Ko.

  • Converting to JPG for doing OpenCV things faster : 32Ko. - 32Ko.

  • Converting back to JP2 : 170Ko.

I "convert" using the cv2.imwrite function.

From here, how to compress with OpenCV this JP2 image ?

Thank you for your help.