tensorflow:: ops:: DecodeGif

#include <image_ops.h>

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

ملخص

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

convert $src.gif -coalesce $dst.gif

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

الحجج:

  • النطاق: كائن النطاق
  • المحتويات: 0-D. الصورة المشفرة بصيغة GIF.

المرتجعات:

  • Output : رباعي الأبعاد بالشكل [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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const