traffic_sign.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # usb_cam remains the only process that opens /dev/video0. While this LED
  2. # recognizer runs at the sign point, it may switch the shared camera to the
  3. # manual LED profile below, then restore automatic exposure on shutdown.
  4. image_topic: /usb_cam/image_raw
  5. enabled: true
  6. model_path: ""
  7. classes: [left, right, straight, stop]
  8. input_size: 640
  9. object_threshold: 0.25
  10. nms_threshold: 0.45
  11. # Preserve red LED colour. Do not use the QR node's grayscale preprocessing.
  12. flip_horizontal: true
  13. # These are software-only adjustments made after subscribing to image_topic.
  14. # They never change /usb_cam/image_raw or the USB camera hardware controls.
  15. brightness: 0
  16. contrast: 1.0
  17. saturation: 1.0
  18. # Tested on the real LED sign: CLAHE brightens floor reflections and reduces
  19. # arrow contrast, so keep it disabled for both collection and NPU inference.
  20. lab_clahe: false
  21. clahe_clip_limit: 1.5
  22. clahe_tile_grid: [8, 8]
  23. gamma: 1.0
  24. # Hardware profile used only during LED-sign recognition. This affects the
  25. # shared camera image temporarily, so start this node only at the sign point.
  26. camera_profile_enabled: true
  27. camera_device: /dev/video0
  28. led_exposure_auto: 1
  29. led_exposure_auto_priority: 0
  30. led_exposure_absolute: 50
  31. led_white_balance_auto: true
  32. restore_camera_on_shutdown: true
  33. restore_exposure_auto: 3
  34. restore_exposure_auto_priority: 0
  35. restore_white_balance_auto: true
  36. restore_brightness: 0
  37. restore_contrast: 50
  38. restore_saturation: 50
  39. restore_gamma: 300
  40. # A direction is accepted only after four matching detections in five frames.
  41. stability_window: 5
  42. stable_count: 4