All Projects → lRomul → gramtion

lRomul / gramtion

Licence: MIT license
Twitter bot for generating photo descriptions (alt text)

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to gramtion

pix2code-pytorch
PyTorch implementation of pix2code. 🔥
Stars: ✭ 24 (+14.29%)
Mutual labels:  image-captioning
twitter-crypto-bot
This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes
Stars: ✭ 21 (+0%)
Mutual labels:  twitter-bot
a11ycasts
Code samples from the A11ycasts YouTube series
Stars: ✭ 40 (+90.48%)
Mutual labels:  accessibility
hocus-focus
A keyboard navigation horror game.
Stars: ✭ 70 (+233.33%)
Mutual labels:  accessibility
csvConf2021
Data visualization accessibility talk for csv,conf,v6 (2021)
Stars: ✭ 19 (-9.52%)
Mutual labels:  accessibility
editoria11y
A user-friendly automatic content accessibility checker.
Stars: ✭ 23 (+9.52%)
Mutual labels:  accessibility
public-transit-tools
Tools for working with GTFS public transit data in ArcGIS
Stars: ✭ 126 (+500%)
Mutual labels:  accessibility
aliqrcode
自动批量生成支付宝收款码工具
Stars: ✭ 45 (+114.29%)
Mutual labels:  accessibility
use-prefers-color-scheme
🪝 React hook for subscribing to user's color scheme preference.
Stars: ✭ 28 (+33.33%)
Mutual labels:  accessibility
twitter-bot-bootstrap
Template for creating a twitter bot using python (twython) and heroku
Stars: ✭ 26 (+23.81%)
Mutual labels:  twitter-bot
fenrir
An TTY screenreader for Linux.
Stars: ✭ 33 (+57.14%)
Mutual labels:  accessibility
theBookOfNoah
Everything ive learned developing web applications
Stars: ✭ 22 (+4.76%)
Mutual labels:  accessibility
meetup-event-planner
GraphQL on Rails Demo Application and React Front End for planning meetup events
Stars: ✭ 22 (+4.76%)
Mutual labels:  accessibility
aria-devtools
Easily spot missing ARIA labels, misused ARIA roles, and incomplete keyboard support in your web applications.
Stars: ✭ 69 (+228.57%)
Mutual labels:  accessibility
a11y-components
No description or website provided.
Stars: ✭ 32 (+52.38%)
Mutual labels:  accessibility
WebSight
Aiding the visually impaired through real time augmented reality, AI object detection, WebGL shaders effects such as edge detection, and colour adjustments.
Stars: ✭ 26 (+23.81%)
Mutual labels:  accessibility
first-timers-only-bot
① First timers only issue tweeting bot.
Stars: ✭ 50 (+138.1%)
Mutual labels:  twitter-bot
Coursera---Using-Python-to-Access-Web-Data
Here is All Weeks Assignment for Using Python to Access Web Data Course on Coursera
Stars: ✭ 36 (+71.43%)
Mutual labels:  accessibility
honk-twitter-bot
A simple honk twitter bot that reply honk slash command
Stars: ✭ 19 (-9.52%)
Mutual labels:  twitter-bot
a11y-dropdown
An experiment to improve accessible drop-down menus for WordPress themes.
Stars: ✭ 18 (-14.29%)
Mutual labels:  accessibility

Title GRAMTION on the background of a black and white photo of clouds in the sky

Twitter bot for generating photo descriptions

According to Twitter support bot account has been suspended due to violations of rules:

  • Creating serial and/or multiple accounts with overlapping uses
  • Evading a permanent suspension by creating or using another account
  • Cross-posting Tweets or links across multiple accounts
  • Aggressive following, particularly through automated means

Twitter: https://twitter.com/GramtionBot

Source Code: https://github.com/lRomul/gramtion


This repo contains the source code of the Twitter @GramtionBot for generating photo descriptions.
Use cases and intends:

  • Help visually impaired Twitter users. Good image descriptions (alt text) will help them understand what is happening in an image. Instagram and Facebook use deep learning for image captioning. Twitter users can only add custom alt text descriptions themselves. Automation of alt text generation will help Twitter be more accessible.
  • Collect dataset for image captioning (legal issues for this use case are yet to be discussed). Annotations can be done by creating polls about prediction quality and getting corrected descriptions from users. Twitter API v1.1 has not the ability to create polls, but it will be added in API v2.

How to use

Tweet photo with mention @GramtionBot or reply with mention to a tweet with a photo and the bot will send you an auto-generated image description.

Dependencies

Gramtion is mainly built from ready-to-use third party libraries:

Current issues

  • Some descriptions may be confusing. Annotations may be created by using polls about prediction quality and getting corrected descriptions from users. Twitter API v1.1 has not the ability to create polls, but it will be added in API v2 endpoint POST /2/tweets.
  • For drawings and some other types of images, the predictions are pretty random.
  • Some results may reflect inherent gender and racial biases of open datasets.

Run own bot

To run an instance of the bot you need to install Docker and create Twitter API auth credentials.
If you have a Twitter developer account, but don't want to use it as a bot account, you can authenticate a new user that’s not has a developer account with twurl.

  • Create .env file with credentials.

    CONSUMER_KEY={{ consumer_key }}
    CONSUMER_SECRET={{ consumer_secret }}
    ACCESS_TOKEN={{ access_token }}
    ACCESS_TOKEN_SECRET={{ access_token_secret }}
    
  • Setup Google Vision AI and create account key (link). Copy key as google_key.json .

  • Run Docker container with running the bot

    docker run -d --restart=always \
        --env-file .env \
        -v google_key.json:/workdir/google_key.json \
        --name=gramtion \
        ghcr.io/lromul/gramtion:0.0.5
  • Open logs

    docker logs -f gramtion
  • Stop container

    docker stop gramtion
    docker rm gramtion
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].