Appendix 01 - Realsense camera

Robotics II

Poznan University of Technology, Institute of Robotics and Machine Intelligence

Laboratory 6: Appendix - Realsense depth camera

Back to the course table of contents

The goal of the course is to develop some skills in using the Realsense depth camera.

Pre-work activities

NOTE: During downloading/installing, you can read introduction to depth cameras and familiarize yourself with the Realsense camera.

Introduction

Depth cameras (RGB-D) allow you to obtain information about the actual distance of objects from the sensor and combine this information with the RGB image indicating the corresponding pixels. These cameras are mainly used in indoor environments: robotics (video) and augmented reality (video).

RGB-D images can be obtained in 3 main ways:

During the course, we will use the Intel® RealSense™ D435 camera, which is equipped with an RGB camera, an IR sensor and a stereovision camera with a base of 5 cm, allowing accurate depth measurements between 0.3 m and 3.0 m and a maximum (manufacturer-declared) range of 10 meters.

Tasks

Task 0

Task 1

Note: Try replacing the classic for loop over each pixel by matrix operations. Every image in python is a Numpy matrix.

Using the template of the program 02_background.py, prepare a program which, based on the depth image, extracts your posture from the background and inserts it into its own image. An example of the program’s effect is shown in the video.

Specifically, the program should:

Task 2

Using the program skeleton 03_paint.py and the depth_filter function from the previous task, prepare a program that will keep track of the nearest point in the image and “draw” points when the spacebar is pressed. An example of the program’s effect is shown in the video.

Detailed tasks:

As a result, upload a two screenshot: