tf.io.extract_jpeg_shape
Извлечение информации о форме JPEG-изображения.
tf.io.extract_jpeg_shape(
contents,
output_type=tf.dtypes.int32,
name=None
)
Этот оператор анализирует только заголовок изображения, поэтому он намного быстрее, чем DecodeJpeg.
| Аргументы | |
|---|---|
contents | A Tensor типа string. 0-мерный. Кодированное в JPEG изображение. |
output_type | Необязательный tf.DType из: tf.int32, tf.int64. По умолчанию tf.int32. (Необязательно) Тип выходных данных операции (int32 или int64). По умолчанию int32. |
name | Название операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor типа output_type. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/io/extract_jpeg_shape