Getting started with Azure Cognitive Services
April 21, 2019 ยท View on GitHub
Requirements
- Python 3.5+
- Wagtail 2+
- Access to any of the supported providers
Installation
Install the library with pip:
$ pip install wagtailaltgenerator
Setup on Azure Cognitive Service
-
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
wagtailaltgeneratoris added to yourINSTALLED_APPS.INSTALLED_APPS = ( # ... 'wagtailaltgenerator', )
Usage
- Upload an image through Wagtail
- Watch the title and/or tags get generated...
- ...And done!