Commit 5853decb authored by Kavindu Randika's avatar Kavindu Randika

Merge branch 'dev_It17170062' into 'master'

Dev it17170062

See merge request !1
parents 70c5ad02 44285065
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pillow = "*"
opencv-python = "*"
tkintertable = "*"
imutils = "*"
tensorflow = "*"
keras = "*"
numpy = "*"
[dev-packages]
[requires]
python_version = "3.9"
This diff is collapsed.
from PIL import Image
import os
def resize():
image_name =os.listdir('outputs')[0]
img_path = "outputs/"+image_name
image = Image.open(f"{img_path}")
outputPath="resized"
resized_image = image.resize((500, 500))
if not os.path.exists(outputPath):
os.makedirs(outputPath)
resized_image.save(f"{outputPath}/{image_name}")
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment