Object detection with Hailo on Raspberry Pi 5

Hello, to run a YOLOv5 model with the .hef extension on a Raspberry Pi 5 with Hailo NPU support, do I need to install a Linux operating system on the Raspberry Pi 5? If I need to install a Linux operating system, should I download the HailoRT library for object detection?