コード例 #1
0
ファイル: DigitStat.py プロジェクト: charleswest/GameScrape
    elif mm ==  [2, 1, 1, 1, 1, 3]: n = 9
    elif mm ==  [1, 1, 1, 2, 1, 3]: n = 9            # noisy 9
    else :n = -1
    
    lb = int(lb)
    parm.lst = [lb,n,t0,L,R,T,B,S,LR,TB,M3,Mv3 ]
    d = d - d
    return parm.lst 
def prtTable(digits,labels):
    db = 1
    dts = np.zeros((10,parm.lstN),dtype='int32' )   
    for d , lb in zip(digits,labels):
        #print '     ',parm.head 
##        if lb in range(10):
         parm.lst = identifyN(d,lb,db)
##            print '     ',parm.head  
##            print 'parm   ',parm.lst,'\n'
##            cvs(1,d,'digit',4)
         dts[lb] = parm.lst
            
    print dts
if  __name__ == '__main__':
    print __doc__
    digits, labels =     cwload_digits_lst("blobs\\aML*.png" )
    prtTable(digits,labels)
    cvd()