librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

3D reconstruction of any random object, D435, C++

Open EmmanuelCos opened this issue 8 years ago • 30 comments


Required Info
Camera Model D435
Operating System & Version Windows 10
Platform PC
Language C++ with opencv }

Hello, I would like to do 3D reconstruction of any random object. The goal is to take several pictures around the object, and then reconstruct it, as does Cappasity https://cappasity.com/. Do we have any source code for that kind of thing? Thank you, Emmanuel

EmmanuelCos avatar Oct 01 '18 08:10 EmmanuelCos

A pre-made application used with the 400 Series cameras that works like Cappacity is LIPScan.

https://www.youtube.com/watch?v=N14Pi6z-MkE

MartyG-RealSense avatar Oct 01 '18 09:10 MartyG-RealSense

I already heard of this one but the sofware isn't free and I don't think that you can have access to the source code.

EmmanuelCos avatar Oct 01 '18 09:10 EmmanuelCos

You can create a scan from a point cloud using free open-source scripting. The difficult part is if you need to then convert that point cloud into a solid mesh model using scripting as well.

Have you seen the discussion linked to below?

https://communities.intel.com/message/565199#565199

MartyG-RealSense avatar Oct 01 '18 09:10 MartyG-RealSense

Hello Marty, Yes I have seen this discussion, and I understand the theory on how I should do that. For me the difficult step would be to merge all the different pointclouds taken with different angles, and I didn't find any opensource code for that, even in the provided links. Best regards, Emmanuel

EmmanuelCos avatar Oct 01 '18 09:10 EmmanuelCos

The merging of point clouds into a single cloud was mentioned in Intel's recent RealSense multiple camera webinar. They said: "[the software] Vicalib can do this, but there is a simpler approach, which will work in 90% of cases. This is is to take the point cloud from every one of the cameras and then do an Affine Transform. Basically, just rotate and move the point clouds, in 3D space, and then once you've done that, you append the point clouds together and just have one large point cloud".

Regarding aligning clouds with Vicalib, the webinar said "it uses a board that you show to each of the cameras in turn., and it establishes overlapping regions to then minimize the pose of each of those together".

If you want to check out the mentioned Vicalib, please see this link:

https://github.com/arpg/vicalib

MartyG-RealSense avatar Oct 01 '18 09:10 MartyG-RealSense

OK thank you, where can I find the page of Intel's recent RealSense multiple camera webinar please?

EmmanuelCos avatar Oct 01 '18 12:10 EmmanuelCos

Intel's webinar system is based on registration cookies, so until they release a recording of the session, the only way to re-watch it is if you registered for the event. I did transcribe the event in detail though.

https://communities.intel.com/message/566337#566337

MartyG-RealSense avatar Oct 01 '18 12:10 MartyG-RealSense

Thank you Marty for your answers, but Vicalib seems to be only available on UNIX and Mac. Does anyone know any open source software available on windows?

EmmanuelCos avatar Oct 01 '18 13:10 EmmanuelCos

There is an open-source software called CloudCompare that works with the 400 Series cameras. It is 3D point cloud and mesh programming software. It has a Windows version.

https://www.danielgm.net/cc/release/index.html

image

MartyG-RealSense avatar Oct 01 '18 13:10 MartyG-RealSense

A further option to consider is the open initiative Open3D. In a previous RealSense webinar in June, Dorodnic the RealSense SDK Manager referenced it in regard to combining point clouds into a "mega point cloud". It can apparently be used in Windows with Visual Studio 2015 update 3 or later.

http://www.open3d.org/

MartyG-RealSense avatar Oct 01 '18 14:10 MartyG-RealSense

Check out this page: https://realsense.intel.com/software-for-intel-realsense/

rafaelspring avatar Oct 04 '18 11:10 rafaelspring

Hello xtrawurst, What I was looking for was a free open source code with ideally an easy to use software implementing the functions to see if the reconstruction fits my expectation. (none of the softwares on this page are free) I'm not sure this exists, but anyway, the library Open3D that MartyG advised me has some good reconstruction functions, that will probably work for what I need. PCL also has some, but I didn't tested them. Regards, Emmanuel

EmmanuelCos avatar Oct 04 '18 11:10 EmmanuelCos

[Realsense Customer Engineering Team Comment] @EmmanueCos How about your test with the library Open3D? Any other questions about this ticket? Please update. Thanks!

Hello, Open3D has very good reconstruction functions and a good tutorial too. You can have a look at this page: http://www.open3d.org/docs/tutorial/ReconstructionSystem/system_overview.html Most of the functions are developped in C++ and Python too. But the main tools like Reconstruction system are only in Python. So I had to transcribe them in C++, but it works really well for what I need to do.

Anyway, it would be great that Intel develops an easy to use reconstruction tool for their realSense cameras, as it is something really expected, when we buy a 3D camera, and in this context, if you are not a developper and don't have any knowledge in mathematics and geometry, can be almost impossible to achieve!

Thank you for your help,

Emmanuel

EmmanuelCos avatar Oct 19 '18 08:10 EmmanuelCos

[Realsense Customer Engineering Team Comment] @EmmanuelCos Thanks for your valuable suggestions! Will try to evaluate.

Cannot wait for the integration of Open3D in future releases as seen here!

HippoEug avatar Oct 26 '18 02:10 HippoEug

[Realsense Customer Engineering Team Comment] @EmmanuelCos Is it ok for you to close the ticket at this moment?Thanks!

Ok, thank you for your help!

EmmanuelCos avatar Nov 16 '18 12:11 EmmanuelCos

Just a quick check on the status of the Open3D integration? Is there an alpha push somewhere?

legel avatar Nov 16 '18 16:11 legel

The most recent statement I know about it was from Dorodnic on October 2. "We are planning to improve the integration with it in one of the upcoming releases, but we continue to work based on community feedback and offer incremental improvements at regular time intervals".

I cannot see any Open3D references in the list of commits for the upcoming SDK version, so it probably is not coming in the month of November.

MartyG-RealSense avatar Nov 16 '18 16:11 MartyG-RealSense