本文整理匯總了Python中utils.visualization.draw_bounding_boxes方法的典型用法代碼示例。如果您正苦於以下問題:Python visualization.draw_bounding_boxes方法的具體用法?Python visualization.draw_bounding_boxes怎麽用?Python visualization.draw_bounding_boxes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類utils.visualization
的用法示例。
在下文中一共展示了visualization.draw_bounding_boxes方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _add_gt_image_summary
# 需要導入模塊: from utils import visualization [as 別名]
# 或者: from utils.visualization import draw_bounding_boxes [as 別名]
def _add_gt_image_summary(self):
# use a customized visualization function to visualize the boxes
self._add_gt_image()
image = draw_bounding_boxes(\
self._gt_image, np.zeros((0,5)), self._image_gt_summaries['im_info']) #no bounding_box ground_truth
return tb.summary.image('GROUND_TRUTH', image[0].astype('float32')/255.0)
開發者ID:Sunarker,項目名稱:Collaborative-Learning-for-Weakly-Supervised-Object-Detection,代碼行數:9,代碼來源:network.py
示例2: _add_gt_image_summary
# 需要導入模塊: from utils import visualization [as 別名]
# 或者: from utils.visualization import draw_bounding_boxes [as 別名]
def _add_gt_image_summary(self):
# use a customized visualization function to visualize the boxes
self._add_gt_image()
image = draw_bounding_boxes(\
self._gt_image, self._image_gt_summaries['gt_boxes'], self._image_gt_summaries['im_info'])
return tb.summary.image('GROUND_TRUTH', image[0].astype('float32')/255.0)
示例3: _add_gt_image_summary
# 需要導入模塊: from utils import visualization [as 別名]
# 或者: from utils.visualization import draw_bounding_boxes [as 別名]
def _add_gt_image_summary(self):
# use a customized visualization function to visualize the boxes
if self._gt_image is None:
self._add_gt_image()
image = tf.py_func(draw_bounding_boxes,
[self._gt_image, self._gt_boxes, self._im_info],
tf.float32, name="gt_boxes")
return tf.summary.image('GROUND_TRUTH', image)
示例4: _add_gt_image_summary
# 需要導入模塊: from utils import visualization [as 別名]
# 或者: from utils.visualization import draw_bounding_boxes [as 別名]
def _add_gt_image_summary(self):
# use a customized visualization function to visualize the boxes
if self._gt_image is None:
self._add_gt_image()
image = tf.py_func(draw_bounding_boxes,
[self._gt_image, self._gt_boxes, self._im_info],
tf.float32, name="gt_boxes")
return tf.summary.image('GROUND_TRUTH', image)