Giter VIP home page Giter VIP logo

Comments (1)

glenn-jocher avatar glenn-jocher commented on July 4, 2024

Hello!

Thank you for reaching out and for providing details about the issue you're encountering with the Intel RealSense SR305 and YOLOv10. Let's work through this together to find a solution.

Firstly, it seems like the error RuntimeError: No device connected indicates that the Intel RealSense SR305 is not being detected by your system. Here are a few steps to help troubleshoot this issue:

  1. Verify Device Connection:

    • Ensure that the Intel RealSense SR305 is properly connected to your computer. Try reconnecting the device and using a different USB port if necessary.
    • Check if the device is recognized by your operating system. On Windows, you can check the Device Manager, and on Linux, you can use lsusb to list connected USB devices.
  2. Install RealSense SDK:

    • Make sure you have the Intel RealSense SDK installed. You can find the installation instructions here.
  3. Test with RealSense Viewer:

    • Use the RealSense Viewer application (included with the SDK) to verify that the SR305 is functioning correctly. This can help isolate whether the issue is with the device or the integration with YOLOv10.
  4. Update Packages:

    • Ensure you are using the latest versions of torch and ultralytics. You can update them using the following commands:
      pip install --upgrade torch ultralytics
  5. Minimum Reproducible Example:

    • If the issue persists, please provide a minimum reproducible code example. This will help us better understand the context and reproduce the issue on our end. You can refer to our guide on creating a minimum reproducible example here.

Here's a basic example of how you might set up the RealSense SR305 with YOLOv10:

import pyrealsense2 as rs
from ultralytics import YOLO

# Configure depth and color streams
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)

# Start streaming
pipeline.start(config)

# Load YOLOv10 model
model = YOLO('yolov10.pt')

try:
    while True:
        # Wait for a coherent pair of frames: depth and color
        frames = pipeline.wait_for_frames()
        color_frame = frames.get_color_frame()
        if not color_frame:
            continue

        # Convert images to numpy arrays
        color_image = np.asanyarray(color_frame.get_data())

        # Perform object detection
        results = model(color_image)

        # Display results
        results.show()

finally:
    # Stop streaming
    pipeline.stop()

If you continue to experience issues, please share the specific code you are using, and any additional error messages you encounter. This will help us provide more targeted assistance.

Looking forward to your response!

from ultralytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.