extracting hailo detection data for use in ros2

Hello, I have a raspberry pi5 with os64 and hailo and ros2. Everything works properly. I’m trying to understand how to get the detected label and score from hailo detection.py to ros2 for use in a robot. I’ve trained my own yolo model to detect red, yellow and green traffic lights but for now the class_id traffic_light from coco is fine as I’m just trying get working comms between the two. Any direction would be appreciated.