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
# 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: |
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; |
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; |
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, |
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(); |