OpenCV cvSaveImage Jpeg Compression Factor

后端 未结 4 687
无人及你
无人及你 2020-12-05 16:15

I am using OpenCV and saving as a jpeg using the cvSaveImage function, but I am unable to find the Jpeg compression factor used by this.

  1. What\'s cvSaveImage(.
4条回答
  •  無奈伤痛
    2020-12-05 16:19

    imwrite("filename.jpeg",src,(vector){CV_IMWRITE_JPEG_QUALITY, 20});
    
    • filename.jpeg will be output File name
    • src be source image read containing variable
    • (vector) typecasting
    • {CV_IMWRITE_JPEG_QUALITY, 20} an array of elements to be passed as Param_ID - and Param_value in imwrite function

提交回复
热议问题