Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

rezing images of entire dataset in python

f = r'C://Users/xx/Desktop/testimages'
for file in os.listdir(f):
    f_img = f+"/"+file
    img = Image.open(f_img)
    img = img.resize((2296,1724))
    img.save(f_img)
Source by holypython.com #
 
PREVIOUS NEXT
Tagged: #rezing #images #entire #dataset #python
ADD COMMENT
Topic
Name
6+2 =