【发布时间】:2020-12-02 17:11:42
【问题描述】:
【问题讨论】:
标签: tensorflow2.0 object-detection object-detection-api
【问题讨论】:
标签: tensorflow2.0 object-detection object-detection-api
我认为从您的问题来看,您是在问如何对图像进行上采样。有几种方法,我认为最简单的就是使用 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))
【讨论】: