TensorFlow函數(shù):tf.image.extract_jpeg_shape

2018-05-31 10:30 更新

tf.image.extract_jpeg_shape函數(shù)

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

提取JPEG編碼圖像的形狀信息.

這個操作只會解析圖像頭,所以它比DecodeJpeg快得多.

參數(shù):

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

返回:

函數(shù)返回output_type類型的Tensor.

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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號