STRUCTURE SENSOR + OPENCV or OPENNI2 + VISUAL STUDIO


#1

I have a project to develop and I am new with structure sensors and I can not find any example that can help me.

What I need is a code or an example of how to make 3D solids of what my sensors are visualizing and to be able to export it in .obj or .stl format.

I do not want to use software that does it, what I need is the code either in opencv or openni2 that is functional, someone could guide me in what I need or a base code so that I can visualize in visual studio, I’m using USB Hacker Cable in windows 10 with opencv and visual studio.

Thank you, I would appreciate your help.


#2

You might want to look at the code for the NiViewer: https://github.com/OpenNI/OpenNI/blob/master/Samples/NiViewer/NiViewer.cpp

Here’s a list of all the samples seen with OpenNI2 and their code: https://github.com/OpenNI/OpenNI2/tree/master/Samples

Also, for reference:
https://structure.io/support/can-i-use-structure-sensor-on-windows-linux-android


#3

@anthony.monaco
is practically what I want to do with a raspberry pi 3, I do not know how to start, can you help me?


#4

Once you are able to sample the sensor with OpenNI2, I suggest you to use these libraries to generate a solid object:

Point cloud management (PCL): http://pointclouds.org/

Visualization Toolkit: https://www.vtk.org/

They are well documented and you can find many examples.

Marco