tensorflow:: ops:: DecodeGif

#include <image_ops.h>

פענח את המסגרת/ות של תמונה מקודדת GIF לטנזור uint8.

תַקצִיר

תמונות GIF עם דחיסת מסגרת או שקיפות אינן נתמכות. במערכות לינוקס ו-MacOS, ניתן להמיר קבצי GIF מונפשים מדחוסים ללא דחוסים על ידי הפעלת:

convert $src.gif -coalesce $dst.gif

פעולה זו תומכת גם בפענוח קבצי JPEG ו-PNG, אם כי נקי יותר להשתמש tf.io.decode_image .

טיעונים:

  • היקף: אובייקט היקף
  • תוכן: 0-D. התמונה מקודדת בפורמט GIF.

החזרות:

  • Output : 4-D עם צורה [num_frames, height, width, 3] . סדר ערוצי RGB.

בנאים והורסים

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

מאפיינים ציבוריים

image
operation

תפקידים ציבוריים

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

מאפיינים ציבוריים

תְמוּנָה

::tensorflow::Output image

מִבצָע

Operation operation

תפקידים ציבוריים

DecodeGif

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

צוֹמֶת

::tensorflow::Node * node() const 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const