【问题标题】:How to draw bounding boxes around classified objects using tensorflow lite?如何使用 tensorflow lite 在分类对象周围绘制边界框?
【发布时间】:2019-01-21 21:42:20
【问题描述】:

我想知道是否可以使用 Tensorflow lite 绘制边界框。我已经能够在 1.12 版中使用 tensorflow-android 绘制它们,但我没有在 tensorflow lite 中绘制边界框的示例。

在下面的代码中,您可以看到我在 tensorflow-android 1.12 中获取正在工作的 outputLocations 的方式。

 inferenceInterface.run(outputNames, logStats);
LOGGER.d("End Section run " + System.currentTimeMillis());
Trace.endSection();

// Copy the output Tensor back into the output array.
Trace.beginSection("fetch");
LOGGER.d("Begin Section fetch " + System.currentTimeMillis());
outputLocations = new float[MAX_RESULTS * 4];
outputScores = new float[MAX_RESULTS];
outputClasses = new float[MAX_RESULTS];
outputNumDetections = new float[1];
inferenceInterface.fetch(outputNames[0], outputLocations);

如果您能告诉我如何使用 runInference() 从 trensorflow-lite 获取 outputLocations,那就太好了。

【问题讨论】:

  • 您找到解决方案了吗?

标签: android tensorflow tensorflow-lite


【解决方案1】:

【讨论】:

    猜你喜欢
    • 2017-03-18
    • 2016-11-20
    • 2013-02-20
    • 2011-01-19
    • 2023-03-13
    • 1970-01-01
    • 2019-06-28
    • 2021-12-03
    • 1970-01-01
    相关资源
    最近更新 更多