All Projects → ParhamP → Altify

ParhamP / Altify

Licence: apache-2.0
Uses deep learning to caption images in an HTML file and fills out its alternative text attributes with the related caption

Programming Languages

python
139335 projects - #7 most used programming language

Altify

.. image:: https://github.com/ParhamP/altify/blob/master/images/gif.gif?raw=true

Altify automizes the task of inserting alternative text attributes for image tags. Altify uses Microsoft Computer Vision API's deep learning algorithms to caption images in an HTML file and returns a new HTML file in which alt attributes are filled out with their corresponding captions.

Notice: Altify will now ignore any image tag whose alt attribute has content or is just an empty string. (In compliance with standard web practices)

Dependencies

  • Python 2.7
  • BeautifulSoup

Install and Use

  1. Get a Microsoft API Key for Free +++++++++++++++++++++++++++++++++++

https://www.microsoft.com/cognitive-services/en-us/sign-up.

  1. Install via pip ++++++++++++++++++

Open up terminal and enter: pip install altify

  1. Use ++++++

altify path_to_your_html api_key

  1. Enjoy! +++++++++

A new HTML file called altify.html is created next to the HTML file you selected.

Captioned Images Samples

.. image:: https://github.com/ParhamP/altify/blob/master/images/pic.png?raw=true

Donald Trump wearing a suit and tie

.. image:: https://github.com/ParhamP/altify/blob/master/images/piano.jpg?raw=true

A piano keyboard

.. image:: https://github.com/ParhamP/altify/blob/master/images/animal.jpg?raw=true

A squirrel eating

.. image:: https://github.com/ParhamP/altify/blob/master/images/cat.jpg?raw=true

A close up of a cat looking at the camera

.. image:: https://github.com/ParhamP/altify/blob/master/images/lady.jpg?raw=true

A woman wearing a red hat

.. image:: https://github.com/ParhamP/altify/blob/master/images/lake.jpg?raw=true

A small boat in a lake surrounded by mountains

Author

Parham Pourdavood

Disclaimer

Humans are currently better at captioning images than machines. Use responsibly!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].