<s> import SimpleCV as cv <EOL> def main ( ) : <EOL> cam = cv . Camera ( <NUM_LIT:0> ) <EOL> disp = cv . Display ( ) <EOL> while disp . isNotDone ( ) : <EOL> if disp . mouseLeft : <EOL> print '<STR_LIT>' <EOL> break <EOL> img = cam . getImage ( ) <EOL> img = img . colorDistance ( cv . Color . YELLOW ) <EOL> img *= <NUM_LIT> <EOL> blobs = img . findBlobs ( ) <EOL> blobs . sort ( key = lambda b : - b . mArea ) <EOL> blobs [ <NUM_LIT:0> ] . draw ( ) <EOL> print '<STR_LIT>' <EOL> img . save ( disp ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
