How to remove background in generated 3D model using reprojectImageTo3D?

asked 2018-12-01 07:47:31 -0600

Good day! I have been having trouble removing the background of the model I'm trying to reconstruct using reprojectImageTo3d method. Im using python. Here is my current process: rectify-> remove background using grabcut -> generate depth map -> reprojectimageto3d method -> generate ply -> view in meshlab.

I thought that using the grabcut to extract the foreground would solve my problem but it did not. the reconstructed model still has a black background ( covered by grabcut ).

Is there anyway I could remove it before the depth map generation part and not include in the generated points?

Thank you! PS. I'm also looking for python libraries to use for meshing the point cloud. Every library I use, I had to use some sort of sampling just to make it run.

edit retag flag offensive close merge delete