Realtime glitch art effects with Python and OpenCV.
GPL-3.0 License
This project uses Python and OpenCV to apply glitch art style effects in real time, using the webcam.
v
key)v
key)f
key)
/
key - Flip orientationg
key)
/
key - Flip orientationt
key)b
key)s
key)r
key to start and then stop)d
key) python3 main.py --help
usage: main.py [-h] [-w RESIZE_WIDTH] [-d DISPLAY_WIDTH]
optional arguments:
-h, --help show this help message and exit
-w RESIZE_WIDTH, --resize-width RESIZE_WIDTH
The internal image width for processing.
-d DISPLAY_WIDTH, --display-width DISPLAY_WIDTH
The width of the image displayed on the screen.
No options are required, I would recommend just running it as is, and changing DISPLAY_WIDTH if the output is too small.
pip3 install -U --user Pillow numpy dlib imutils
Installing dlib will take a long time, and is resource intensive. You should leave your computer and do something else while it's installing.
GPL version 3. See LICENSE for details.