'Tensorflow image too small to display results properly
Is there a possible way for me to resize or change the way the results are being displayed for my object detection?
Any help would be greatly appreciated!
Solution 1:[1]
I think from your question you are asking how to upsample an image. There are a few ways, the simplest in my opinion is to use Pillow see here: 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))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | audittxl |