Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

crop_aircrafts.py 318 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
  1. from PIL import Image
  2. import os
  3. images = os.listdir("filelists/aircrafts/images")
  4. for path in images:
  5. image = Image.open(os.path.join("filelists/aircrafts/images", path)).convert('RGB')
  6. image = image.crop((0,0,image.size[0],image.size[1]-20))
  7. image.save(os.path.join("filelists/aircrafts/images", path))
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...