تينسورفلو :: العمليات :: DrawBoundingBoxes
#include <image_ops.h>
ارسم المربعات المحيطة على مجموعة من الصور.
ملخص
يخرج نسخة من images
لكنه يرسم أعلى وحدات البكسل صفرًا أو أكثر من المربعات المحيطة المحددة بواسطة المواقع الموجودة في boxes
. يتم ترميز إحداثيات كل مربع محيط في boxes
على أنها [y_min, x_min, y_max, x_max]
. إحداثيات الصندوق المحيط تطفو في [0.0, 1.0]
بالنسبة لعرض وارتفاع الصورة الأساسية.
على سبيل المثال ، إذا كانت الصورة 100 × 200 بكسل (الارتفاع × العرض) وكان المربع المحيط هو [0.1, 0.2, 0.5, 0.9]
، فإن الإحداثيات العلوية اليسرى والسفلية اليمنى للصندوق المحيط ستكون (40, 10)
إلى (180, 50)
(في إحداثيات (س ، ص)).
قد تقع أجزاء من المربع المحيط خارج الصورة.
الحجج:
- النطاق: كائن النطاق
- الصور: 4-D بالشكل
[batch, height, width, depth]
. دفعة من الصور. - المربعات: ثلاثية الأبعاد مع الشكل
[batch, num_bounding_boxes, 4]
تحتوي على المربعات المحيطة.
عائدات:
-
Output
: 4-D بنفس شكلimages
. مجموعة صور الإدخال مع مربعات إحاطة مرسومة على الصور.
البنائين والمدمرين | |
---|---|
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 :: Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.