https://github.com/sanjujosh/auto-image-renamer
Rename images using deep learning
https://github.com/sanjujosh/auto-image-renamer
artificial-intelligence microsoft-api python vision-api
Last synced: 10 months ago
JSON representation
Rename images using deep learning
- Host: GitHub
- URL: https://github.com/sanjujosh/auto-image-renamer
- Owner: sanjujosh
- Created: 2016-11-19T20:10:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T00:30:28.000Z (over 3 years ago)
- Last Synced: 2024-12-13T01:33:52.554Z (over 1 year ago)
- Topics: artificial-intelligence, microsoft-api, python, vision-api
- Language: Python
- Size: 284 KB
- Stars: 151
- Watchers: 10
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Auto-image-renamer
Rename images using deep learning

Auto-image-renamer automates the task of renaming images with meaningful names. It uses Microsoft Computer Vision APIs deep learning algorithms to rename the images
## Update Jan 2023
Microsoft changed the old API, so I have updated the same in here. Also removed python2 support.
## Dependencies
- Python 3 (Tested under Windows Python 3.10.2)
## Usage
### 1) Get a Microsoft API Key for Free
[Sign Up](https://azure.microsoft.com/en-gb/products/cognitive-services/computer-vision/)
### 2) Create a computer vision
Replace API Key with `MICROSOFT_VISION_API_KEY` and end point with `MICROSOFT_VISION_API_ENDPOINT` in renamer.py
## Usage
```
python renamer.py path_to_images_dir
```
EXAMPLE `python3 renamer.py /home/sanju/images`
NOTICE: Do not use a trailing slash in dir
## 4) Enjoy!
All the images in the given directory will be renamed with meaningful names now.
## How It was Built
1. Find all the images in the given directory
2. Images will be sent to Microsoft API, they process the image and sent back a caption.
3. Rename the files with new name from the VISION API
## Disclaimer
It uploads the images to Microsoft servers, do not use it with personal images. (or use it with caution)
## Credits
Originally inspired from https://github.com/ParhamP/altify