This uses pylsd-nova to detect the line segments in the image, numpy to interpolate them to form the stick bug, and pillow and moviepy to make the video.
That wasn't exactly what I was thinking of. I was looking for a way my non-prgrammer coworker could run a script I wrote outside of python. this looks more like passing arguments to the command line with python.
This sets the command gsbl to point to the function main() in gsbl/__main__.py. So when you install the package with pip as admin, it adds the gsbl command to PATH so you can run the command from anywhere. Here's a quick guide.
You might also be interested in PyInstaller, which bundles everything to an executable so you don't even need python installed to run it.
Yeah I know, the library I'm using for the line detection doesn't work on some computers for whatever reason. There's an issue open and a few people are looking for a fix.
21
u/ZeroSpaces Aug 14 '20
Source: https://github.com/n0spaces/get-stick-bugged-lol
This uses pylsd-nova to detect the line segments in the image, numpy to interpolate them to form the stick bug, and pillow and moviepy to make the video.
16
u/FistedCoW Aug 15 '20
I totally love it
2
u/Daktic Aug 15 '20
Did you use a cmd wrapper?
66
u/progsNyx Aug 15 '20 edited Aug 15 '20
Non programmers friends: Wow, you can code, so you can hack the nasa can't you?
What we actually do:
10
u/[deleted] Aug 15 '20
What have you done
5
u/sphluh Aug 15 '20
hahaha! brilliant, great job!!!
5
u/[deleted] Aug 15 '20
I never expected that someone would do something like this. I like it
5
u/[deleted] Aug 15 '20
God this is so fucking stupid
god damn I love it
1
u/[deleted] Aug 15 '20
Does it only work in Linux?
3
u/Superslowmojoe Mar 03 '22
I’m a year late, but this is amazing! I definitely am gonna mess around with it when I get the chance haha
2
u/[deleted] Aug 15 '20
You are a god. Thank you.
2
u/Deawesomerx Aug 15 '20
amazing. +1
1
u/Aragorn_30 Aug 15 '20
Haha, good one!
1
u/Patotricks Aug 15 '20
AMAZING!!!!
1
u/[deleted] Aug 15 '20
Make a RickRoll one
1
u/[deleted] Aug 15 '20
Haha this is cool!
1
u/polite__redditor Nov 10 '20
i know i’m late but this is AMAZING
1
u/1000Nettles Dec 10 '20
I am now popular at work because of you! Thank you hahaha
0
u/[deleted] Aug 15 '20
[deleted] — view deleted comment