<s> from SimpleCV import * <EOL> color = Color ( ) <EOL> img = Image ( '<STR_LIT>' ) <EOL> img = img . invert ( ) <EOL> img2 = Image ( '<STR_LIT>' ) <EOL> img2 = img2 . invert ( ) <EOL> blobs = img . findBlobs ( ) <EOL> blobs2 = img2 . findBlobs ( ) <EOL> confuse = [ ] <EOL> i = <NUM_LIT:0> <EOL> for b in blobs : <EOL> for d in blobs2 : <EOL> metric = b . getMatchMetric ( d ) <EOL> result = b . showCorrespondence ( d , '<STR_LIT>' ) <EOL> title = "<STR_LIT>" + str ( metric ) <EOL> result . drawText ( title , <NUM_LIT:20> , <NUM_LIT:20> , color = Color . RED , fontsize = <NUM_LIT> ) <EOL> result . show ( ) <EOL> fname = "<STR_LIT>" + str ( i ) + "<STR_LIT>" <EOL> i = i + <NUM_LIT:1> <EOL> result . save ( fname ) <EOL> print "<STR_LIT>" <EOL> print metric <EOL> confuse . append ( metric ) <EOL> print confuse <EOL> confuse = np . array ( confuse ) <EOL> print confuse . reshape ( <NUM_LIT:4> , <NUM_LIT:4> ) <EOL> time . sleep ( <NUM_LIT:10> ) </s>
