Cotton picking robot

I am working on cotton picker robot. can anyone tell me object detection using yolo4 and then how to integrate object detection model to camera ,sensor,ardiuno