
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Uses deep learning to caption img tags within a web page and fills out their alt attribute with the related caption
.. 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)
https://www.microsoft.com/cognitive-services/en-us/sign-up.
2) Install via pip
~~~~~~~~~~~~~~~~~~
Open up terminal and enter: ``pip install altify``
3) Use
~~~~~~
``altify path_to_your_html api_key``
4) Enjoy!
~~~~~~~~~
A new HTML file called altify.html is created next to the HTML file you
selected.
How It was Built
----------------
1. Parses the html using BeautifulSoup.
2. Finds all the image tags.
3. Sends a request to Microsoft's API to caption.
4. Fills out the alt attributes for all the images.
5. Writes an edited HTML file next to the 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
Disclaimer
----------
Humans are currently better at captioning images than machines. Use
responsibly!
FAQs
Uses deep learning to caption img tags within a web page and fills out their alt attribute with the related caption
We found that altify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.