Created
March 23, 2016 20:22
-
-
Save easauceda/7cfe8bdd73d22ba17544 to your computer and use it in GitHub Desktop.
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
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