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.

Hey I just released this project where Hailo tappas and ROS2 are bundled together in a debian docker container with a fully working example in Python. The solution is super performant in RPi5 allowing for 3 models to run in parallel with low CPU usage in the host.

Check it out here: GitHub - kyrikakis/hailo_tappas_ros2