Function mindspore::dataset::vision::WriteJpeg

Function Documentation

Status mindspore::dataset::vision::WriteJpeg(const std::string &filename, const mindspore::MSTensor &image, int quality = 75)

Write the image data into a JPEG file.

参数
  • filename[in] The path to the file to be written.

  • image[in] The data tensor.

  • quality[in] The quality for JPEG file, in range of [1, 100]. Default: 75.

返回

The status code.