Picamera2 python code example with hailo

can anyone provide me with example to how to use picamera2 library with hailo to detect an object

Checkout RPI picamera2 documentation.
Examples can be found here picamera2/examples/hailo at main · raspberrypi/picamera2 · GitHub