def trackingLoop(sender): #Input of the PCB stuff while(1): if not noTracking: a = trackingObject.getFrame() if a is not None: sender.emit("tracking_frame",json.dumps(a))
def trackingLoop(sender): #Input of the PCB stuff while (1): if not noTracking: a = trackingObject.getFrame() if a is not None: sender.emit("tracking_frame", json.dumps(a))
def trackingLoop(sender): if demoFrame is None: trackingObject.connect() while(1): if demoFrame is not None: sender.emit("tracking_frame",json.dumps(demoFrame)) else: a = trackingObject.getFrame() sender.emit("tracking_frame",json.dumps(a))