English | Japanese
DepthProjectionMapping
DepthProjectionMapping is able to project depth image using intel RealSense D4XX series and a projector.
Also, project video by specifying the projection area.
OpenCV
aruco of OpenCV's extra module
openFrameworks
cvui
Projector intel RealSense D4XX series
Build this project since Visual Studio 2017 and run.
- Calibrate camera.
Note: Once the camera has been calibrated, it will not run from next time on. - 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
- 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
- Specify the background image. Click the Set button of "Background image".
- 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).
- Adjust the mask area. The mask area can be adjusted by sliding the Binarization threshold.
- Press the Set button of "Mask" when only the object you want to project is displayed. The mask area can be fixed.
- 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.
- In the "screen" window, specify the image you want to project. Right-click to specify the start point, and release at the end point.
- When all the steps 1~6 are set, press the ""Start" button of "Composition".
- Projection mapping will begin.
This project clone to your installed openFrameworks/apps/myApps.