-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raspberry pi webcam predictions #29
Comments
Hello! To use your Raspberry Pi webcam's video for predictions with an RTSP stream, you can modify the source input in the inference command. Here’s how you can do it using the Ultralytics YOLO model: If you're using Python: from ultralytics import YOLO
# Load your YOLO model
model = YOLO("yolov8n.pt")
# Run inference on the RTSP stream
results = model("rtsp://your_stream_address") Or, if you prefer using the CLI: yolo predict model=yolov8n.pt source="rtsp://your_stream_address" Just replace Happy coding! 🚀 |
How do I impletment this in the yolo ios app @pderrenger |
Hello @pythonsus, To implement YOLO model inference in an iOS app, you would typically use CoreML. First, convert the YOLO model to CoreML format, then integrate it into your iOS project using Swift or Objective-C.
For detailed steps on model conversion and iOS implementation, you might want to check out Apple's Core ML documentation. Best of luck with your app development! 🚀 |
How can I implement this code in the yolo-ios-app in swift. Or in other words how can I use an rtsp stream as the source for yolo-ios-app in swift(not in python) @pderrenger
|
Hello @pythonstuff8, To use an RTSP stream as a source for the YOLO model in an iOS app using Swift, you'll need to handle the stream differently since Swift does not directly support the Python code you've shown. Here’s a general approach:
You'll need to handle the video stream and frame processing asynchronously to ensure smooth performance in your app. Best of luck with your implementation! 🚀 |
How could I the change prediction video to my raspberry pi webcam's video?(I have a rstp stream if required)
The text was updated successfully, but these errors were encountered: