'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.
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
Built Distribution
Hashes for get-stick-bugged-lol-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c2421df1ca9e11046e5c279eb7e27b1e091902bd71a90637a4504b10ff0b74 |
|
MD5 | 491d53019f8e2ffc95d5105ec446b88e |
|
BLAKE2b-256 | e51c75f3d0a3edf4407a9c50c10fa3d67b60fd7879bda4362bad7183d9b21bae |
Hashes for get_stick_bugged_lol-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd0db3a1989894207b5a44bf012c5dcda41f7d084dc9ce26c03ce051be5815c4 |
|
MD5 | 49d8187e4b7da69ab1d956f74b6f20ea |
|
BLAKE2b-256 | a4a6c91e3c68ca8f3341f6ccc11101d3a44d443f5f674637c9aaf43a5748c341 |