সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেনসরফ্লো :: অপস:: DrawBoundingBoxesV2
#include <image_ops.h>
চিত্রের একটি ব্যাচে আবদ্ধ বাক্স আঁকুন।
সারাংশ
images
একটি অনুলিপি আউটপুট করে কিন্তু 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)
থেকে (100, 50)
(এক্স, y) স্থানাঙ্কে)।
বাউন্ডিং বাক্সের অংশগুলি চিত্রের বাইরে পড়তে পারে।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- ছবি: 4-ডি আকৃতি সহ
[batch, height, width, depth]
। ইমেজ একটি ব্যাচ. - বাক্স: 3-ডি আকৃতি সহ
[batch, num_bounding_boxes, 4]
বাউন্ডিং বক্স রয়েছে। - রং: 2-ডি। বাক্সগুলির জন্য চক্রাকারে RGBA রঙের একটি তালিকা৷
রিটার্ন:
-
Output
: 4-ডি images
মতো একই আকারের সাথে। ছবিগুলিতে আঁকা বাউন্ডিং বাক্স সহ ইনপুট চিত্রগুলির ব্যাচ৷
পাবলিক বৈশিষ্ট্য
পাবলিক ফাংশন
নোড
::tensorflow::Node * node() const
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# tensorflow::ops::DrawBoundingBoxesV2 Class Reference\n\ntensorflow::ops::DrawBoundingBoxesV2\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 `(100, 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.0/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- colors: 2-D. A list of RGBA colors to cycle through for the boxes.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.0/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| [DrawBoundingBoxesV2](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_v2_1a045daabb9f82e495abcb25389793c47f)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` boxes, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` colors)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_v2_1a7c6fe4fe1de16e31ab6399296c433a05) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_v2_1a047b31504fdafafad15a5665c95513b7) | `::`[tensorflow::Output](/versions/r2.0/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_v2_1a428527239d4a4cdfcbd18ec15ebe9584)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_v2_1a29bc76dba2f81b97780d12396085ea46)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_draw_bounding_boxes_v2_1a216f8e9d2152744c9b7522113495dfe4)`() 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### DrawBoundingBoxesV2\n\n```gdscript\n DrawBoundingBoxesV2(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input images,\n ::tensorflow::Input boxes,\n ::tensorflow::Input colors\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```"]]