Ejemplo n.º 1
0
    visualiseInfo['fig_nn']=fig_nn
else:
    visualiseInfo=None

# Read and test images from iCub eyes in real-time

#fig_input = pb.figure()
#subplt_input = fig_input.add_subplot(111)


while( True ):
    pass

    try:        
        choice = inputInteractionPort.read(True)
        testFace = mySAMpy.readImageFromCamera()
        pp = mySAMpy.testing(testFace, choice, visualiseInfo)
        #time.sleep(0.5)
        l = pp.pop()
        l.remove()
        pb.draw()
        pb.waitforbuttonpress(0.1)
        #del l
    except KeyboardInterrupt:
        print 'Interrupted'
        try:
            sys.exit(0)
        except SystemExit:
            os._exit(0)

Ejemplo n.º 2
0
    pb.show()
    visualiseInfo['fig_nn'] = fig_nn
else:
    visualiseInfo = None

# Read and test images from iCub eyes in real-time

#fig_input = pb.figure()
#subplt_input = fig_input.add_subplot(111)

while (True):
    try:
        if yarpRunning:
            choice = inputInteractionPort.read(True)
            testFace = mySAMpy.readImageFromCamera()
        else:
            TODO
        pp = mySAMpy.testing(testFace, choice, visualiseInfo)
        #time.sleep(0.5)
        l = pp.pop()
        l.remove()
        pb.draw()
        pb.waitforbuttonpress(0.1)
        #del l
    except KeyboardInterrupt:
        print 'Interrupted'
        try:
            sys.exit(0)
        except SystemExit:
            os._exit(0)