nodes:
  - id: camera
    build: pip install ../../node-hub/opencv-video-capture
    path: opencv-video-capture
    inputs:
      tick: dora/timer/millis/20
    outputs:
      - image
    env:
      CAPTURE_PATH: 0
      IMAGE_WIDTH: 640
      IMAGE_HEIGHT: 480

  - id: plot
    build: cargo build -p dora-rerun --release
    path: dora-rerun
    inputs:
      image:
        source: camera/image
        queue_size: 1
    env:
      IMAGE_WIDTH: 640
      IMAGE_HEIGHT: 480
      README: |
        # Visualization of your webcam

        - You can increase or decrease the frequency within the dataflow with: `tick: dora/timer/millis/20` in the webcam node.