View my account

Beginner - need advise

Comments

4 comments

  • MartyG

    The first step that I would recommend is to install the RealSense SDK's pyrealsense2 Python compatibility 'wrapper' if you have not done so already.

    https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python 

    If you are able to use PyPi then the Python wrapper can be installed with this command:

    pip install pyrealsense2

    In regard to satisfying your project needs for object detection, distance reading and measuring ... there are "old" ways of doing such things with RealSense and Python.  It may be better to start from the beginning with learning a modern method that you can actually develop into a production-level project though.  For that reason, a good fit for your project may be to use your RealSense camera with ROS and the OpenVINO Toolkit vision computing software.

    I suggest ROS because with the RealSense ROS wrapper, you can write ROS 'node' programs in the Python language to add to the project's capabilities.

    The link below has an example tutorial using RealSense, ROS and the OpenVINO Toolkit.  It suggests using a hardware acceleration device such as Intel Neural Compute Stick (NCS) for boosting the performance of vision computing applications.  Having such a device is not listed in the prerequisites for the project though.

    https://github.com/gbr1/ros_openvino 

    The official RealSense Store offers the current NCS model, Intel Neural Compute Stick 2, as a standalone purchase or in a bundle with a RealSense camera if you are interested in pursuing hardware acceleration for your project.

    https://store.intelrealsense.com/ 

    0
    Comment actions Permalink
  • Michall Laskii

    Thank you for your response.

    We want to learn something and make our own project without using ready-made solutions, so starting from the beginning will be the best option.

    If you have some more tutorials/guides/books or advice I would glad to listen.

    0
    Comment actions Permalink
  • MartyG

    Intel have a RealSense Python tutorial for using data in a pre-recorded 'bag' file to align depth and color data and then identify the object and measure the distance to the object.

    https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb 

    The pre-recorded nature of the data may not make it suitable for your robot application though, which made me hesitant to recommend it.  There are other similar Python-based examples that can do object and person detection in this way with live data though.

    https://github.com/IntelRealSense/librealsense/issues/3086#issuecomment-455181310 

    In regard to measuring, the robot nature of the project means that it may not be appropriate to recommend examples that require the detected object to be placed against a target image such as a chessboard / checkerboard (unless the object will always be roughly in the same place, such as looking at a tub containing objects).  I will direct you to a calibration target-based measuring system in the SDK for Python in case you wish to investigate it.   It is designed for multiple cameras but should be able to work with one.

    https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/box_dimensioner_multicam/box_dimensioner_multicam_demo.py 

    0
    Comment actions Permalink
  • Michall Laskii

    Ok, thank you very much. I will try to do something with that. I think your answers will be very helpful.

    0
    Comment actions Permalink

Please sign in to leave a comment.