Skip to content
/ DigLit Public

Simplistic (quick n' dirty) greenscreen in processing, able to toggle backgrounds from jpgs, also take external input from an Arduino Leonardo (a keyboard) to change background.. also made the "keyboard" :)

Notifications You must be signed in to change notification settings

Robotto/DigLit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

DigLit

A Digital Literacy project involving an Arduino Leonardo based guitar-pedal-style stompbox with 3 buttons. The stompbox chooses the background which replaces the green in a processing sketch that feeds from a USB conected webcam.

Some images of the project hardware are available at: http://mark.moore.dk/#post248

Consists of 2 major parts:

1. - Controller (ARDUINO):
1.1 - Arduino Leonardo sketch which debounces 3 button inputs and presses a keyboard key after each change (because the buttons are toggle-style guitar-pedal buttons)
1.2 - An SVG for a tabbed box to be lasercut, fitted to the buttons.
2 - Greenscreen (PROCESSING):
2.1 - As the name suggests this processing sketch employs a pseudo-greenscreen filter, which basically just scans every pixel in every frame from a webcam and replaces the pixel with the background image if: Green is more present than red and blue, the algorithm is quick and dirty but it works most of the time, if the lighting is right. The user is able to change redfactor and bluefactor by entering R/r and B/b. The sketch also scans 3 folders (dragons, trees, rockets) for jpgs and allows the user to cycle through each of these collections with the '1','2' and '3' keys
dragons = 1
trees = 2
rockets = 3

(I DO NOT OWN THE IMAGES IN THE 3 FOLDERS, I JUST BORROWED THEM OFF SOME GOOGLE IMAGE SEACHES) Whichever jpg is currently chosen is the one that's used to replace a 'green' webcam pixel in the greenscreen algo.

that is all :) I hereby disclaim all rights to the code. feel free to use this code and edit, sell, buy, republish-taking-credit or print-out-and-eat it. ~Robotto

About

Simplistic (quick n' dirty) greenscreen in processing, able to toggle backgrounds from jpgs, also take external input from an Arduino Leonardo (a keyboard) to change background.. also made the "keyboard" :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages