Rpi with picamera doing object detect

I want to use picamera to object dtect ,does it have any example.
btw , where can i tranfer my yolo model (.pt or .onnx) into .hef

thanks,
Li