Skip to content

Instantly share code, notes, and snippets.

Lloyd Henning eldog

Block or report user

Report or block eldog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@eldog
eldog / BackgroundRemoval.pde
Created Feb 6, 2017
Removes the background using processing.
View BackgroundRemoval.pde
import processing.video.*;
import gab.opencv.*;
Capture liveCam;
PImage camCapture, foregroundMask, screenshot;
OpenCV opencv;
int width = 640;
int height = 480;
View BackgroundMask.pde
// Import Libraries - install these if necessary.
import processing.video.*;
import gab.opencv.*;
//create Capture
Capture liveCam;
//create PImages
PImage camCapture, foregroundMask, backgroundMask, screenshot;
float comparVal = 0.25;
@eldog
eldog / oauth.coffee
Created Jan 11, 2014
Oauth monkey patch to get meteor oauth accounts to work in a cordova app
View oauth.coffee
Meteor.startup ->
Package.oauth.Oauth.initiateLogin = initiateLogin
getHostnameFromUrl = (url) ->
aEl = document.createElement 'a'
aEl.href = url
aEl.hostname
initiateLogin = (credentialToken,
url,
View android_canvas_save.java
// Save the canvas to file "check.jpg" on SDCard
public void saveCanvas() throws IOException
{
// Write the canvas to file
FileOutputStream fos;
try
{
fos = new FileOutputStream("/sdcard/check.jpg");
mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);
fos.flush();
You can’t perform that action at this time.