TensorFlow函數(shù)教程:tf.io.extract_jpeg_shape

2019-02-22 16:15 更新

tf.io.extract_jpeg_shape函數(shù)

別名:

  • tf.image.extract_jpeg_shape
  • tf.io.extract_jpeg_shape
tf.io.extract_jpeg_shape(
    contents,
    output_type=tf.dtypes.int32,
    name=None
)

提取JPEG編碼圖像的shape信息。

此操作僅解析圖像標(biāo)題,因此它比DecodeJpeg快得多。

參數(shù):

  • contents:string類型的0-d Tensor。JPEG編碼的圖像。
  • output_type:可選的tf.DType,可以是:tf.int32, tf.int64。默認(rèn)為tf.int32。(可選)操作的輸出類型(int32或int64)。默認(rèn)為int32。
  • name:操作的名稱(可選)。

返回:

output_type類型的Tensor。

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)