def sign_process(self, ch, method, props, body): try: ch.basic_ack(delivery_tag=method.delivery_tag) self.log.info(method.routing_key + ' received message') image = load_image(body) cv2.imshow(self.sign_window, image) cv2.waitKey(1) except Exception as err: self.log.error(err)
def process(self, ch, method, props, body): self.log.info(method.routing_key + ' received message') image = load_image(body) cv2.imshow('image', image) cv2.waitKey()