View mediapipe_hands_world_space.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import pygame | |
import math | |
import mediapipe as mp | |
import numpy as np | |
from PIL import Image | |
from pygame.locals import * | |
from OpenGL.GL import * | |
from OpenGL.GLU import * |
View BackgroundRemoval.pde
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.video.*; | |
import gab.opencv.*; | |
Capture liveCam; | |
PImage camCapture, foregroundMask, screenshot; | |
OpenCV opencv; | |
int width = 640; | |
int height = 480; |
View BackgroundMask.pde
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
View oauth.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); |