텐서플로우:: 작전:: 디코드Gif

#include <image_ops.h>

GIF로 인코딩된 이미지의 프레임을 uint8 텐서로 디코딩합니다.

요약

프레임 또는 투명도 압축이 적용된 GIF 이미지는 지원되지 않습니다. Linux 및 MacOS 시스템에서는 다음을 실행하여 애니메이션 GIF를 압축된 GIF에서 압축되지 않은 상태로 변환합니다.

convert $src.gif -coalesce $dst.gif

이 작업은 JPEG 및 PNG 디코딩도 지원하지만 tf.image.decode_image 사용하는 것이 더 깔끔합니다.

인수:

  • 범위: 범위 개체
  • 내용: 0-D. GIF로 인코딩된 이미지입니다.

보고:

  • Output : [num_frames, height, width, 3] 모양의 4D. 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() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const