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?
stream=True
is passed, causing potential out-of-memory errors for large sources or long-running streams and videos." I have included the stream=True but i still keep getting the message