【问题标题】:Is there any possibility to move label position from top to bottom?是否有可能将标签位置从上到下移动?
【发布时间】:2019-09-20 06:56:45
【问题描述】:

我正在使用 tensorflow 对象检测 api 在某些图像中查找某些对象。这些对象彼此非常接近。

有没有可能将班级的标签和分数从盒子的顶部移动到底部?我看不清楚分数,我总是需要在日志文件中检查它们。

这就是我所说的检测框,您可以看到标签在顶部

Link to image

【问题讨论】:

    标签: tensorflow label object-detection-api


    【解决方案1】:

    可以,只需修改绘图功能即可将标签移至底部。

    具体需要修改的函数就是这个one

    if top > total_display_str_height:
        text_bottom = top
    else:
        text_bottom = bottom + total_display_str_height
    

    将上面一行修改为

    text_bottom = bottom + total_display_str_height
    

    您会看到在边界框底部打印的标签。

    我自己试过了,结果如下。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多