本文整理汇总了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)