tensor akışı:: işlem:: DecodeGif

#include <image_ops.h>

GIF kodlu bir görüntünün çerçevesini/karelerini uint8 tensörüne dönüştürün.

Özet

Çerçeve veya şeffaflık sıkıştırmalı GIF resimleri desteklenmez. Linux ve MacOS sistemlerinde, şunu çalıştırarak animasyonlu GIF'leri sıkıştırılmış durumdan sıkıştırılmamış duruma dönüştürün:

convert $src.gif -coalesce $dst.gif

Bu işlem aynı zamanda JPEG'lerin ve PNG'lerin kodunun çözülmesini de destekler, ancak tf.image.decode_image kullanmak daha temizdir.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • içindekiler: 0-D. GIF kodlu görüntü.

İadeler:

  • Output : Şekilli 4-D [num_frames, height, width, 3] . RGB kanal sırası.

Yapıcılar ve Yıkıcılar

DecodeGif (const :: tensorflow::Scope & scope, :: tensorflow::Input contents)

Genel özellikler

image
operation

Kamu işlevleri

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Genel özellikler

görüntü

::tensorflow::Output image

operasyon

Operation operation

Kamu işlevleri

DecodeGif

 DecodeGif(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const