View Single Post
  #13   Spotlight this post!  
Unread 09-04-2014, 17:22
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Team 254 Presents: CheesyVision

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
Code:
locked = 0
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.