Ejemplo n.º 1
0
print 'Total Swimming Time[s]: ' + str(morrisPool.getVideoTimeInS())

op = raw_input('Transfer Experiment? [y/n]: ')
op = op.lower()

if op == 'y':
    print 'Continue with Transference Analysis'
    print '------------------------------------'
    (centre, rad) = morrisPool.getPoolPosition()
    p = Pool(centre, convListToTuple(mousePath), w.getPathName())
    p.analyseMousePath()
    p.showPath()
    d = DrawOutput(morrisPool.poolRadio, morrisPool.poolCenter,
        p.targetPosition,morrisPool.mousePathA)
    p.generateReport()
    print 'Analysis Finished'
    print '------------------------------------'
    print 'Done!'
    
else:
    print 'Creating Base Image...'
    print '------------------------------------'
    createBasePhoto(w.getPathName(), videoSequence[0])
    (centre, rad) = morrisPool.getPoolPosition()
    p = Pool(centre, convListToTuple(mousePath), w.getPathName())
    d = DrawOutput(morrisPool.poolRadio, morrisPool.poolCenter,
        p.targetPosition,morrisPool.mousePathA)
    print 'Done!'