컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: DrawBoundingBox
#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)
~ (180, 50)
((x,y) 좌표).
경계 상자의 일부가 이미지 외부에 있을 수 있습니다.
인수:
- 범위: 범위 개체
- 이미지:
[batch, height, width, depth]
모양의 4D. 이미지 묶음입니다. - 상자: 경계 상자를 포함하는
[batch, num_bounding_boxes, 4]
모양의 3D입니다.
보고:
-
Output
: images
와 동일한 모양의 4D . 이미지에 경계 상자가 그려진 입력 이미지 배치입니다.
공개 속성
공공 기능
마디
::tensorflow::Node * node() const
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# tensorflow::ops::DrawBoundingBoxes Class Reference\n\ntensorflow::ops::DrawBoundingBoxes\n==================================\n\n`#include \u003cimage_ops.h\u003e`\n\nDraw bounding boxes on a batch of images.\n\nSummary\n-------\n\nOutputs a copy of `images` but draws on top of the pixels zero or more bounding boxes specified by the locations in `boxes`. The coordinates of the each bounding box in `boxes` are encoded as `[y_min, x_min, y_max, x_max]`. The bounding box coordinates are floats in `[0.0, 1.0]` relative to the width and height of the underlying image.\n\nFor example, if an image is 100 x 200 pixels (height x width) and the bounding box is `[0.1, 0.2, 0.5, 0.9]`, the upper-left and bottom-right coordinates of the bounding box will be `(40, 10)` to `(180, 50)` (in (x,y) coordinates).\n\nParts of the bounding box may fall outside the image.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- images: 4-D with shape `[batch, height, width, depth]`. A batch of images.\n- boxes: 3-D with shape `[batch, num_bounding_boxes, 4]` containing bounding boxes.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): 4-D with the same shape as `images`. The batch of input images with bounding boxes drawn on the images.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DrawBoundingBoxes](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_1a36778a64785d4874761fc8cd75c7963d)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` boxes)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_1ade5996b5c08a78404427015175077267) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_1aefea4317485f5bf21a230bb2c5f1360a) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_1a5e8d732e824b4d741105479608cc4a4b)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_1a79b868abb859e248316d87c58807e6f8)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_1a9c857ad52358b4df98f879d531c8d33d)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### DrawBoundingBoxes\n\n```gdscript\n DrawBoundingBoxes(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input images,\n ::tensorflow::Input boxes\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]