Skip to content

Instantly share code, notes, and snippets.

View eldog's full-sized avatar

Lloyd Henning eldog

View GitHub Profile
eldog /
Last active April 1, 2024 11:42
Google Mediapipe Hand Tracking to World Space using OpenCV solvePnP, rendered in OpenGL using PyGame
# MIT License
# Copyright (c) 2023 Foxdog Studios
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
eldog / BackgroundRemoval.pde
Created February 6, 2017 21:20
Removes the background using processing.
import gab.opencv.*;
Capture liveCam;
PImage camCapture, foregroundMask, screenshot;
OpenCV opencv;
int width = 640;
int height = 480;
// Import Libraries - install these if necessary.
import gab.opencv.*;
//create Capture
Capture liveCam;
//create PImages
PImage camCapture, foregroundMask, backgroundMask, screenshot;
float comparVal = 0.25;
eldog /
Created January 11, 2014 20:19
Oauth monkey patch to get meteor oauth accounts to work in a cordova app
Meteor.startup ->
Package.oauth.Oauth.initiateLogin = initiateLogin
getHostnameFromUrl = (url) ->
aEl = document.createElement 'a'
aEl.href = url
initiateLogin = (credentialToken,
eldog /
Created August 7, 2011 13:24
Saving android canvas
// Save the canvas to file "check.jpg" on SDCard
public void saveCanvas() throws IOException
// Write the canvas to file
FileOutputStream fos;
fos = new FileOutputStream("/sdcard/check.jpg");
mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);