tensorflow:: ops:: DecodeGif
#include <image_ops.h>একটি GIF-এনকোডেড ছবির ফ্রেম(গুলি)কে একটি uint8 টেনসরে ডিকোড করুন।
সারসংক্ষেপ
ফ্রেম বা স্বচ্ছতা কম্প্রেশন সহ GIF ছবি সমর্থিত নয়। Linux এবং MacOS সিস্টেমে, অ্যানিমেটেড GIF-কে কম্প্রেসড থেকে আনকম্প্রেসড-এ রূপান্তর করতে নিম্নলিখিত কমান্ডটি চালান:
convert $src.gif -coalesce $dst.gif
এই অপারেশনটি JPEG এবং PNG ডিকোড করাও সমর্থন করে, যদিও tf.io.decode_image ব্যবহার করা আরও পরিচ্ছন্ন।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- বিষয়বস্তু: ০-ডি। জিআইএফ-এনকোডেড ছবিটি।
ফেরত:
-
Output:[num_frames, height, width, 3]আকৃতির ৪-ডি। আরজিবি চ্যানেল ক্রম।
নির্মাতা এবং ধ্বংসকারী | |
|---|---|
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( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
নোড
::tensorflow::Node * node() const
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const