nodes:
  - id: camera
    build: pip install opencv-video-capture
    path: opencv-video-capture
    inputs:
      tick: dora/timer/millis/100
    outputs:
      - image
    env:
      CAPTURE_PATH: "0"
      ENCODING: "rgb8"
      IMAGE_WIDTH: "640"
      IMAGE_HEIGHT: "480"

  - id: tracker
    build: pip install -e .
    path: dora-cotracker
    inputs:
      image: camera/image
      # points_to_track: input/points_to_track    # uncomment this if using input node
    outputs:
      - tracked_image
      - points

  - id: plot
    build: pip install dora-rerun
    path: dora-rerun
    inputs:
      image: camera/image
      tracked_image: tracker/tracked_image

  # replace with your own node that outputs tracking points # uncomment if input via node
  # (e.g., YOLO detector, pose estimator, etc.)
  # - id: point_source
  #   build: pip install your-node  # Replace with your node's name
  #   path: your-point-source-node  # Replace with your node's path
  #   inputs:
  #     image: camera/image  # If your node needs image input
  #   outputs:
  #     - points_to_track    # Must output points in required format
