tf.raw_ops.ExtractJpegShape
Извлечение информации о форме JPEG-кодированного изображения.
tf.raw_ops.ExtractJpegShape(
contents,
output_type=tf.dtypes.int32,
name=None
)
Этот оператор анализирует только заголовок изображения, поэтому он намного быстрее, чем DecodeJpeg.
| Аргументы | |
|---|---|
contents | A Tensor типа string. 0-D. Кодированное 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/api_docs/python/tf/raw_ops/ExtractJpegShape