@Operator(group="image") public final class DecodeGif extends PrimitiveOp implements Operand<UInt8>
GIF images with frame or transparency compression are not supported. On Linux and MacOS systems, convert animated GIFs from compressed to uncompressed by running:
convert $src.gif -coalesce $dst.gif
This op also supports decoding JPEGs and PNGs, though it is cleaner to use `tf.image.decode_image`.
operation
Modifier and Type | Method and Description |
---|---|
Output<UInt8> |
asOutput()
Returns the symbolic handle of a tensor.
|
static DecodeGif |
create(Scope scope,
Operand<String> contents)
Factory method to create a class wrapping a new DecodeGif operation.
|
Output<UInt8> |
image()
4-D with shape `[num_frames, height, width, 3]`.
|
equals, hashCode, op, toString
public static DecodeGif create(Scope scope, Operand<String> contents)
scope
- current scopecontents
- 0-D. The GIF-encoded image.public Output<UInt8> image()
public Output<UInt8> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<UInt8>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.