imwrite best quality

asked 2018-10-24 13:41:16 -0500

Nbb gravatar image

Hello, if I am trying to save an image at the best quality what should the arguments be ?

cv2.imwrite("image.png",frame, [int(cv2.IMWRITE_PNG_COMPRESSION), 0])

Does this save the image at the best quality ?

edit retag flag offensive close merge delete

Comments

.png is lossless, so it doesn't matter. The argument you are providing is for compression aggression.

Der Luftmensch gravatar imageDer Luftmensch ( 2018-10-24 13:42:54 -0500 )edit

For frame with floating point you can use yml file

LBerger gravatar imageLBerger ( 2018-10-24 14:20:54 -0500 )edit

thank you very much

Nbb gravatar imageNbb ( 2018-10-24 17:29:30 -0500 )edit