Autogenerate image descriptions with the help of computer vision
Project description
Autogenerate image descriptions with the help of computer vision (inspired by altify).
Requirements
Python 2.7 / Python 3.4 / PyPy
Django 1.8+
Wagtail 1.7+
An Microsoft Cognitive Service account
Images must be accessible by third part (to enable Computer Vision processing)
Installation
Install the library with pip:
$ pip install wagtailaltgenerator
Quick Setup
Register an account on Microsoft Cognitive Service
Retrive api key for the product Computer Vision - Preview
Add the key to your django settings:
COMPUTER_VISION_API_KEY = 'yourkey'
Make sure wagtailaltgenerator is added to your INSTALLED_APPS.
INSTALLED_APPS = ( # ... 'wagtailaltgenerator', )
Usage
Upload an image through Wagtail
Watch the title get generated…
…And done!
Settings
COMPUTER_VISION_API_KEY: Computer Vision api key
Tests
This library include tests, just run python runtests.py
Make sure to install dev requirements: pip install -r requirements/dev.txt
Before running any type of tests, make sure the env variable COMPUTER_VISION_API_KEY is exported.
You can also run separate test cases: runtests.py tests.GenerateLabelTest
Contributing
Want to contribute? Awesome. Just send a pull request.
License
Wagtail-alt-generator is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wagtailaltgenerator-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e1d31204b0935d5ad955462d5e51458a926645e2e9edb9156198faad7370a4b |
|
MD5 | 8a2531b42192cd609e91d0f1870984f8 |
|
BLAKE2b-256 | ac8ffc7f1c8385e1a823db0a44bd2fe93bf0f02c686d4787b2c85828ac17c979 |
Hashes for wagtailaltgenerator-1.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94382be96fd8d53445dbd92158aa6bb41302d327499e2407d7e1ee8033a932ba |
|
MD5 | 04a9187cb6bf70201916e78d5c369e80 |
|
BLAKE2b-256 | c0073733bd7503d67602270046b752cb5152544b6069b1779fc92d4f9fc208f3 |