Tw1ddle / geometrize-twitter-bot

Twitter bot for Geometrize, a tool for geometrizing images into geometric primitives

Home Page:https://www.geometrize.co.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geometrize Twitter bot logo

License Geometrize Twitter Bot Build Status

Twitter bot for Geometrize, an app for geometrizing images into geometric primitives. The bot waits for images to be tweeted at it. It geometrizes images it receives into shapes, and posts the results on Twitter.

Geometrized Forest

Usage

Tweet an image at the bot for a random result:

@Geometrizer Hi, geometrize bot!

Or tweet the specific numbers of shapes you want the bot to use, in the order they should be added to the image:

@Geometrizer rotated_ellipses=50 circles=50 rotated_rectangles=100 triangles=30 - thanks Geometrize bot!

Here is an example of how it is done:

Example Geometrize Bot Tweet

Development

Prerequisites

  • Get a copy of Geometrize. Install or copy it into the geometrize subfolder.
  • Install Python 3.x, pip, and the tweepy and Pillow libraries.
  • A fresh Twitter app on the Twitter apps dashboard.

Setup

Fill in the Twitter app credentials in config.py and then run the bot:

python bot.py

The bot should connect to the Twitter streaming API. Console output should look like this.

Tweet an image at the bot. After a few moments, the bot will tweet a geometrized version back at you.

Notes

  • If you want to develop the bot further, take a look at the documentation.
  • Got an idea or suggestion? Open an issue on GitHub, or send Sam a message on Twitter.
  • This bot was inspired by primitive, a Go library created by Michael Fogleman.

About

Twitter bot for Geometrize, a tool for geometrizing images into geometric primitives

https://www.geometrize.co.uk/

License:Other


Languages

Language:Python 100.0%