Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 928 Bytes

getting-started.md

File metadata and controls

45 lines (30 loc) · 928 Bytes

Getting started with Azure Cognitive Services

Requirements

Installation

Install the library with pip:

$ pip install wagtailaltgenerator

Setup on Azure Cognitive Service

  1. Register an account on Azure Cognitive Service

  2. Create a new resource for Computer Vision

  3. Retrive your api key and your selected region

  4. Add the key and region to your django settings:

    COMPUTER_VISION_API_KEY = 'yourkey'
    COMPUTER_VISION_REGION = 'your-region' (example northeurope)
    
  5. Make sure wagtailaltgenerator is added to your INSTALLED_APPS.

    INSTALLED_APPS = (
        # ...
        'wagtailaltgenerator',
    )

Usage

  1. Upload an image through Wagtail
  2. Watch the title and/or tags get generated...
  3. ...And done!