【问题标题】:Tensorflow image too small to display results properlyTensorflow 图像太小而无法正确显示结果
【发布时间】:2020-12-02 17:11:42
【问题描述】:

我是否可以调整大小或更改对象检测结果的显示方式?

This is my current result

任何帮助将不胜感激!

【问题讨论】:

    标签: tensorflow2.0 object-detection object-detection-api


    【解决方案1】:

    我认为从您的问题来看,您是在问如何对图像进行上采样。有几种方法,我认为最简单的就是使用 Pillow 看这里:https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.resize

    from PIL import Image
    
    im = Image.open("hopper.jpg")
    
    # Provide the target width and height of the image
    (width, height) = (im.width * 2, im.height * 2)
    im_resized = im.resize((width, height))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-12
      • 2020-08-27
      • 2021-09-26
      • 2018-12-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多