tensorflow:: אופס:: DecodeGif

#include <image_ops.h>

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

סיכום

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

convert $src.gif -coalesce $dst.gif

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

טיעונים:

  • scope: אובייקט Scope
  • תוכן: 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