Skip to content

DepthProjectionMapping is able to project depth image using intel RealSense D4XX series and a projector. Also, project video by specifying the projection area.

License

Notifications You must be signed in to change notification settings

tes2840/DepthProjectionMapping

Repository files navigation

DepthProjectionMapping

English | Japanese

Name

DepthProjectionMapping

Overview

DepthProjectionMapping is able to project depth image using intel RealSense D4XX series and a projector.
Also, project video by specifying the projection area.

Demo

1. Recognize projection position and estimate pose

2. Projection mapping of depth image

demo2

3. Projection mapping of video by specifying the projection area

Requirement

Libraries

OpenCV
aruco of OpenCV's extra module
openFrameworks
cvui

Equipment

Projector intel RealSense D4XX series

Usage

Build this project since Visual Studio 2017 and run.

  1. Calibrate camera.
    Note: Once the camera has been calibrated, it will not run from next time on.
  2. Adjust the camera position so that the marker projected by the projector is within the angle of view of it, and press 'q' or 'd'.
    d: Start projection mapping of depth image
    q: Start projection mapping of video by specifying the projection area

Projection mapping of depth image(Press 'd')

  1. If the projected depth image is noisy, please modify setting.json in the project according to the environment.
    "param-depthclampmax": "3400", // Maximum distance to get depth(depthunits * depthclampmax)
    "param-depthclampmin": "0", // Minimum distance to get depth(depthunits * depthclampmin)
    "param-depthunits": "1000", // the depth unit value, in micrometre

Projection mapping of video by specifying the projection area(Press 'q')

  1. Specify the background image. Click the Set button of "Background image".
  2. Place the object to be projected in the projection area. The area where there is no difference from the background image will be black.
    The image will not be projected on the area(mask area).
  3. Adjust the mask area. The mask area can be adjusted by sliding the Binarization threshold.
  4. Press the Set button of "Mask" when only the object you want to project is displayed. The mask area can be fixed.
  5. Modify the mask area. You can right-click on the screen to exclude the point from the mask area, or left-click to specify it as the mask area.
    The brush size can be adjusted by adjusting the Thick size slider.
  6. In the "screen" window, specify the image you want to project. Right-click to specify the start point, and release at the end point.
  7. When all the steps 1~6 are set, press the ""Start" button of "Composition".
  8. Projection mapping will begin.

Install

This project clone to your installed openFrameworks/apps/myApps.

Author

github : tes2840
Twitter : tes2840

About

DepthProjectionMapping is able to project depth image using intel RealSense D4XX series and a projector. Also, project video by specifying the projection area.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages