Skip to content

Instantly share code, notes, and snippets.

@easauceda
Created March 23, 2016 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easauceda/7cfe8bdd73d22ba17544 to your computer and use it in GitHub Desktop.
Save easauceda/7cfe8bdd73d22ba17544 to your computer and use it in GitHub Desktop.
from SimpleCV import *
cam = Kinect()
depth = cam.getDepth()
width = depth.width
height = depth.height
screensize = width * height
threshold = 255
while True:
depth = cam.getDepth()
avgcolor = depth.meanColor()
R, G, B = avgcolor
if (R > 255 or B > 255 or G > 255):
depth.drawText('thats too close')
depth.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment