ultralytics / ultralytics

Ultralytics YOLO11 🚀
https://docs.ultralytics.com
GNU Affero General Public License v3.0
31.33k stars 6.02k forks source link

I'm trying to use RTSP, a CCTV communication protocol, with yolo8 images. #9900

Closed rurusungoa closed 5 months ago

rurusungoa commented 6 months ago

Search before asking

Question

hello I'm trying to use RTSP, a CCTV communication protocol, with yolo8 images. Should I use tcp as the protocol? Should I use the rtsp protocol?

When the communication protocol is Reverse, is the communication method TCP?

I would like to inquire whether you used the TCP protocol when doing the project.

port: 558 
protocol: TCP ==> Should I change it to rtsp?
targetPort: 558

bind: 558 mode tcp => Should I change it to rtsp? option tcplog =>Should I change it to rtsplog?

Additional

No response

github-actions[bot] commented 6 months ago

👋 Hello @rurusungoa, thank you for your interest in Ultralytics YOLOv8 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered.

If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results.

Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users.

Install

Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.

pip install ultralytics

Environments

YOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

Ultralytics CI

If this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit.

glenn-jocher commented 6 months ago

Hello! 😊

For integrating RTSP streams with YOLOv8 for CCTV footage analysis, you indeed need to use the RTSP protocol in your configurations. Typically, RTSP streams operate over TCP/IP, but when specifying the protocol for YOLO inference, you should directly use the RTSP URI format.

Here's a simple snippet to use an RTSP stream with YOLOv8:

from ultralytics import YOLO

# Initialize YOLO model
model = YOLO('yolov8n.pt')

# Specify your RTSP stream URL
rtsp_url = 'rtsp://your_camera_ip:558/your_stream_path'

# Run inference on the RTSP stream
results = model(rtsp_url, stream=True)

# Process your results here
for result in results:
    result.show()  # Display the frame with detections

Remember to replace 'rtsp://your_camera_ip:558/your_stream_path' with your actual RTSP stream URL.

In summary, for RTSP:

Hope this clears things up! Let us know if you have any more questions.

github-actions[bot] commented 5 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐