shaoheshaohe 发表于 2020-12-23 11:45:24

ImwritePNGFlags opencv cv2


Enumerator
IMWRITE_PNG_STRATEGY_DEFAULT Python: cv.IMWRITE_PNG_STRATEGY_DEFAULT
Use this value for normal data.
IMWRITE_PNG_STRATEGY_FILTERED Python: cv.IMWRITE_PNG_STRATEGY_FILTERED
Use this value for data produced by a filter (or predictor).Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better.
IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY Python: cv.IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY
Use this value to force Huffman encoding only (no string match).
IMWRITE_PNG_STRATEGY_RLE Python: cv.IMWRITE_PNG_STRATEGY_RLE
Use this value to limit match distances to one (run-length encoding).
IMWRITE_PNG_STRATEGY_FIXED Python: cv.IMWRITE_PNG_STRATEGY_FIXED
Using this value prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.

shaoheshaohe 发表于 2020-12-23 11:45:32

https://docs.opencv.org/3.4/d8/d6a/group__imgcodecs__flags.html#ga292d81be8d76901bff7988d18d2b42ac
页: [1]
查看完整版本: ImwritePNGFlags opencv cv2