เทนเซอร์โฟลว์:: ปฏิบัติการ:: DecodeGif
#include <image_ops.h>ถอดรหัสเฟรมของภาพที่เข้ารหัส GIF เป็นเทนเซอร์ uint8
สรุป
ไม่รองรับภาพ GIF ที่มีกรอบหรือการบีบอัดความโปร่งใส บนระบบ Linux และ MacOS ให้แปลง GIF แบบเคลื่อนไหวจากแบบบีบอัดเป็นแบบไม่มีการบีบอัดโดยเรียกใช้:
convert $src.gif -coalesce $dst.gif
op นี้ยังรองรับการถอดรหัส 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
DecodeGif( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const