forked from sanjujosh/auto-image-renamer
Rename images using deep learning
Auto-image-renamer automates the task of renaming images with meaningful names. It uses OpenAI Vision API within chat completion to rename the images
Using OpenAI instead.
Microsoft changed the old API, so I have updated the same in here. Also removed python2 support.
- Python 3 (Tested under Windows Python 3.10.2)
Store the OpenAI key as an environment variable.
python renamer.py path_to_images_dir
EXAMPLE python3 renamer.py /home/sanju/images
NOTICE: Do not use a trailing slash in dir
All the images in the given directory will be renamed with meaningful names now.
- Find all the images in the given directory
- Images will be sent to OpenAI, they process the image and send back a caption.
- Rename the files with new name from the API
It uploads the images to OpenAI servers, use it with caution.
Originally inspired from https://github.com/ParhamP/altify
forked from sanjujosh/auto-image-renamer