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.

dataflow_yolo.yml 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. nodes:
  2. - id: camera
  3. build: pip install ../../node-hub/opencv-video-capture
  4. path: opencv-video-capture
  5. inputs:
  6. tick: plot/tick
  7. outputs:
  8. - image
  9. env:
  10. CAPTURE_PATH: 0
  11. IMAGE_WIDTH: 640
  12. IMAGE_HEIGHT: 480
  13. - id: object-detection
  14. build: pip install ../../node-hub/ultralytics-yolo
  15. path: ultralytics-yolo
  16. inputs:
  17. image:
  18. source: camera/image
  19. queue_size: 1
  20. outputs:
  21. - bbox
  22. env:
  23. MODEL: yolov5n.pt
  24. - id: plot
  25. build: pip install ../../node-hub/opencv-plot
  26. path: opencv-plot
  27. inputs:
  28. image:
  29. source: camera/image
  30. queue_size: 1
  31. bbox: object-detection/bbox
  32. tick:
  33. source: dora/timer/millis/16 # this node display a window, so it's better to deflect the timer, so when the window is closed, the ticks are not sent anymore in the graph
  34. queue_size: 1
  35. outputs:
  36. - tick