Replies: 1 comment 5 replies
-
@Jason1-2 You can find more details on docs/predict from ultralytics import YOLO
model = YOLO('yolov8n.pt')
results = model.predict(source=src, verbose=True, stream=True) # `stram=True ` for generator
for r in results:
# YOUR CODE |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to add an argument into my python code that can scan only one frame at a time, instead of infinite. Normally, a frame gets displayed on my screen but since the camera is "Printing" infinity frames, I can't reach the next part of my code. I found coding that makes up YOLO models.py, results.py, predictor.py... etc. Does anyone know of an argument that can help me only scan one frame at a time instead of infinity. Thank You!!!
Beta Was this translation helpful? Give feedback.
All reactions