텐서플로우:: 작전:: DrawBoundingBoxesV2

#include <image_ops.h>

이미지 배치에 경계 상자를 그립니다.

요약

images 복사본을 출력하지만 boxes 의 위치에 지정된 0개 이상의 경계 상자를 픽셀 위에 그립니다. boxes 에 있는 각 경계 상자의 좌표는 [y_min, x_min, y_max, x_max] 로 인코딩됩니다. 경계 상자 좌표는 기본 이미지의 너비와 높이를 기준으로 [0.0, 1.0] 의 부동 소수점입니다.

예를 들어 이미지가 100 x 200픽셀(높이 x 너비)이고 경계 상자가 [0.1, 0.2, 0.5, 0.9] 인 경우 경계 상자의 왼쪽 위 및 오른쪽 아래 좌표는 (40, 10) 입니다. (40, 10) ~ (100, 50) ((x,y) 좌표).

경계 상자의 일부가 이미지 외부에 있을 수 있습니다.

인수:

  • 범위: 범위 개체
  • 이미지: [batch, height, width, depth] 모양의 4D. 이미지 묶음입니다.
  • 상자: 경계 상자를 포함하는 [batch, num_bounding_boxes, 4] 모양의 3D입니다.
  • 색상: 2D. 상자에 대해 순환할 RGBA 색상 목록입니다.

보고:

  • Output : images 와 동일한 모양의 4D . 이미지에 경계 상자가 그려진 입력 이미지 배치입니다.

생성자와 소멸자

DrawBoundingBoxesV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input boxes, :: tensorflow::Input colors)

공개 속성

operation
output

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 속성

작업

Operation operation

산출

::tensorflow::Output output

공공 기능

DrawBoundingBoxesV2

 DrawBoundingBoxesV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input boxes,
  ::tensorflow::Input colors
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const