You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

no_webcam.py 432 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import time
  4. import urllib.request
  5. import cv2
  6. import numpy as np
  7. from dora import Node
  8. req = urllib.request.urlopen("https://ultralytics.com/images/zidane.jpg")
  9. arr = np.asarray(bytearray(req.read()), dtype=np.uint8)
  10. node = Node()
  11. start = time.time()
  12. while time.time() - start < 20:
  13. # Wait next input
  14. node.next()
  15. node.send_output("image", arr.tobytes())
  16. time.sleep(1)

DORA (Dataflow-Oriented Robotic Architecture) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed datafl