I am currently trying to use yolov8 to perform object detection on the raspberry pi 4. I have installed ultralytics and other necessary packages but whenever i run the code on the terminal it says "segmentation fault". Here is the code that I am trying to run:
from ultralytics import YOLO model = YOLO("yolov8n.pt") model.predict(source=0, show=True)
How can I fix this error?