Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: DrawBoundingBoxes

#include <image_ops.h>

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

요약

의 사본 출력 images 픽셀이 0 개 이상의 위치로 지정 상자 경계의하지만 위에 그립니다 boxes . 각각의 경계 박스 좌표 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) ~ (180, 50) ((x, y) 좌표).

경계 상자의 일부가 이미지를 벗어날 수 있습니다.

인수 :

  • 범위 : 범위 개체
  • 이미지 : 모양 [batch, height, width, depth] 4-D. 이미지 배치.
  • 상자 : 경계 상자를 포함하는 [batch, num_bounding_boxes, 4] 모양의 3 차원.

보고:

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

생성자와 소멸자

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

공용 속성

operation
output

공공 기능

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

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

DrawBoundingBoxes

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

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const