This is really cool. We were planning on using the kinect, but we haven't had spectacular results in testing when we try it with people walking around in the background.
After playing around with it, I found it really useful to be able to lock the calibration color value so that I could hold a green index card in front of the calibration square, save that calibration value, then use both hands to hold up two cards in the boxes so that I can drop one hand out of the way to signal.
To add the lock-
above the while loop
after the statement in the while loop beginning with cal, left, right
Code:
if locked == 1:
cal = lastCal
lastCal = cal
at the bottom where the keys are checked
Code:
elif key == ord('l'):
locked = 1
elif key == ord('u'):
locked = 0
Pressing l locks the current calibration value, and u resets it to normal.