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.

README.md 937 B

1 year ago
12345678910111213141516171819202122232425
  1. # Python Dataflow Example
  2. This examples shows how to create and connect dora operators and custom nodes in Python.
  3. ## Overview
  4. The [`dataflow.yml`](./dataflow.yml) defines a simple dataflow graph with the following three nodes:
  5. - a webcam node, that connects to your webcam and feed the dataflow with webcam frame as jpeg compressed bytearray.
  6. - an object detection node, that apply Yolo v5 on the webcam image. The model is imported from Pytorch Hub. The output is the bounding box of each object detected, the confidence and the class. You can have more info here: https://pytorch.org/hub/ultralytics_yolov5/
  7. - a window plotting node, that will retrieve the webcam image and the Yolov5 bounding box and join the two together.
  8. ## Getting started
  9. ```bash
  10. cargo run --example python-dataflow
  11. ```
  12. ## Run the dataflow as a standalone
  13. - Start the `dora-daemon`:
  14. ```
  15. ../../target/release/dora-daemon --run-dataflow dataflow.yml
  16. ```