tf.raw_ops.ExtractJpegShape
Извлекает информацию о форме изображения, закодированного в формате JPEG.
tf.raw_ops.ExtractJpegShape(
contents,
output_type=tf.dtypes.int32,
name=None
)
Эта операция анализирует только заголовок изображения, поэтому работает намного быстрее, чем DecodeJpeg.
| Аргументы | |
|---|---|
contents | Tensor типа string. 0-D. Изображение, закодированное в формате JPEG. |
output_type | Необязательный tf.DType из: tf.int32, tf.int64. По умолчанию — tf.int32. (Необязательно) Тип выходных данных операции (int32 или int64). По умолчанию — int32. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
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