Skip to main content

'Get stick bugged' video generator

Project description

get-stick-bugged-lol

A Python module and command-line tool that generates a Get Stick Bugged Lol video from any image.

Example

Example video with sound

This script uses pylsd-nova to detect line segments in the image, Pillow to draw the lines as they move to form the stick bug, and MoviePy to create the video.

Installation

NOTE: This package requires a 64-bit installation of Python 3. pylsd-nova does not work on 32-bit.

This package can be installed using pip:

pip install get-stick-bugged-lol

Usage

In the terminal

Installing the package will register the gsbl command in the terminal (or you can use python -m gsbl). To use the image input.png to generate the video output.mp4:

gsbl input.png output.mp4

Optional arguments:

  • -h, --help Display the help message and exit
  • --line-color R G B RGB color to use for line segments (default: 255 255 211)
  • --bg-color R G B RGB color to use for background after image disappears (default: 125 115 119)

More options will be added in later releases.

In a Python script

import gsbl

# generate the video from input.png
video = gsbl.generate_stick_bug('input.png')

# save the video as output.mp4
gsbl.save_video(video, 'output.mp4')

TODO

  • Rewrite to be more object-oriented and easier to maintain
  • Add more customization options, especially with the line detection and video resolution
  • Make a GUI

License

This package is available under the MIT License. See LICENSE for more info.

This package makes use of the following external libraries:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get-stick-bugged-lol-0.0.2.tar.gz (3.5 MB view hashes)

Uploaded Source

Built Distribution

get_stick_bugged_lol-0.0.2-py3-none-any.whl (3.5 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page