The Reddit Daltonizer Bot (/u/DaltonicBot) aims to help Colorblind reddit users by providing them with color enhanced images.
- The bot gets mentionned by a redditor on a post This is to reduce spam
- It checks if the summon is valid and ignores the invalid ones
- The mention must be a top level comment (a direct reply to the submission)
- The submission must be an image
- This is the first time it has been mentionned in this post
- It stores the image's data
- It converts the image's colors to enhance it for colorblind users and simulate what colorblinds see
- It uploads all the converted images to imgur
- To reduce spam and minize the size of it's comments, it then creates two imgur albums (Enhanced images, Simulated images) and replies with direct links to both
-
To reduce spam:
- Allow the moderators of a Subreddit to tell the bot not to run in that subreddit
- Allow the users to tell the bot not to run on their submissions
- Calculate the percentage difference between images to see if a conversion is required
-
To improve code performance & readability:
- Refactor
bot.process_submission()
method - Account for API Exceptions for both reddit and Imgur
- Refactor
-
To improve it's capabilities:
- Allow for multiple images
- Add commands:
- Simulated Images only
- Enhanced Images only
- Long reply mode (direct links to images), check
helpers.get_long_reply_message()
for more info- Add album link in superscript too
- Attempt (if possible) to improve transformation matrices using machine learning and a user voting system (long term goal)
- colors
- color saturation
- brightness
- PRAW
- imgurpython
- Pillow
- numpy
Run setup.sh
to install all the requirements
The bot is still in development and the code that powers it may be sloppy, undocumented and inefficient.
You are more than welcome to open issues and to contribute to the bot if you wish
- Credit to /u/ghostfivenine for the idea
- Credit to /u/vortigernup for many improvement suggestions
- Special thanks to the /r/colorblind community for helping test this bot