› Foros › PC › Software libre
for i in range(len(data)): if abs(ord(data[i])-ord(last1[i])) > 15: # pix threshold 15/256 pixdiff += 1 if pixdiff > 90: # img threshold 90/900 #¿Primera vez? detecciones += 1 if detecciones > 1: print "incoming call ringing" break last1 = data
if detecciones > 1: