'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
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. 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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f95268b7e51759747dfb57a01f4a12a5984d54d9c849690f5417b6b1007b00 |
|
MD5 | e990ca2ba1ca90a4a36e9a1707529d1e |
|
BLAKE2b-256 | 6af670a10ae1e59de21c116614c33c684fc00e69304f0eff52a95cd35b32b344 |
Hashes for get_stick_bugged_lol-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6edd93ed6daf940bf4766c97828eab0bfe22fd579d27f7c5f88f88c913e05bf |
|
MD5 | 8f45a2996008fc0a7ed71cc893a7b0ac |
|
BLAKE2b-256 | e7902226271c7e2c3f8f861b1663643b98693b738ea55f4703ad665f611d319d |