Function mindspore::dataset::vision::EncodeJpeg

Function Documentation

Status mindspore::dataset::vision::EncodeJpeg(const mindspore::MSTensor &image, mindspore::MSTensor *output, int quality = 75)

Encode the image as JPEG data.

参数
  • image[in] The image to be encoded.

  • output[out] The Tensor data.

  • quality[in] The quality for the output tensor, in range of [1, 100]. Default: 75.

返回

The status code.