- Python 3.5+
- Wagtail 2+
- Access to any of the supported providers
Install the library with pip:
$ pip install wagtailaltgenerator
-
Register an account on Azure Cognitive Service
-
Create a new resource for
Computer Vision
-
Retrive your api key and your selected region
-
Add the key and region to your django settings:
COMPUTER_VISION_API_KEY = 'yourkey' COMPUTER_VISION_REGION = 'your-region' (example northeurope)
-
Make sure
wagtailaltgenerator
is added to yourINSTALLED_APPS
.INSTALLED_APPS = ( # ... 'wagtailaltgenerator', )
- Upload an image through Wagtail
- Watch the title and/or tags get generated...
- ...And done!