def process(frame, channel): json_str = libTestPyAruco.yay(frame) data = json.loads(json_str) # print data r.publish(channel + publish_channel, json.dumps(data))
import libTestPyAruco libTestPyAruco.Init() print libTestPyAruco.yay()