تدفق التوتر:: العمليات:: فك تشفيرGif

#include <image_ops.h>

قم بفك تشفير إطار (إطارات) الصورة المشفرة بـ GIF إلى موتر uint8.

ملخص

صور GIF ذات ضغط الإطار أو الشفافية غير مدعومة. في أنظمة Linux وMacOS، يمكنك تحويل صور GIF المتحركة من مضغوطة إلى غير مضغوطة عن طريق تشغيل:

convert $src.gif -coalesce $dst.gif

تدعم هذه العملية أيضًا فك تشفير ملفات JPEG وPNG، على الرغم من أنه من الأفضل استخدام tf.image.decode_image .

الحجج:

  • النطاق: كائن النطاق
  • المحتويات: 0-د. الصورة المشفرة بـ 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

الوظائف العامة

فك تشفيرGif

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

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const