تينسورفلو :: العمليات :: فك الشفرة
#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
: 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( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]