Doubt about crop_point_cloud working #7395
Unanswered
VictorGimenez
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to know how the
o3d.visualization.read_selection_polygon_volume.crop_point_cloudworks, for that I followed this example in this link: https://www.open3d.org/docs/release/tutorial/geometry/pointcloud.html#Crop-point-cloud and reproduced this example by creating my owncropped.jsonfile.I executed the script

/home/victorbg/miniconda3/envs/3Dbce_env/lib/python3.12/site-packages/open3d/examples/visualization/interactive_visualization.pyand I was selecting the chair little by little until reaching this result:After, I created a script (if anyone would like to see the code I can show) without downsampling to get the numpy.array from this .ply with approximately this content:
With this script I generated a custom cropped.json file for test and understanding purposes, the file different from the original one (with only 31 lines being 20 np.arrays) from the example had 214460 lines with this content, also, I decided to use the same values to
axis_max,axis_minand still maintained theorthogonal_axisinY:This is the original cropped.json one:
After I reproduced the same code, only modifying the
o3d.visualization.read_selection_polygon_volumefor the path where there is my cropped_chair.json and I executed the code:I got this result after a very long time:

and this amount of points:
chair:PointCloud with 27027 points.
len np.array(chair.points):27027
Less than in the original one from the example:
chair:PointCloud with 31337 points.
len np.array(chair.points):31337
With lots of holes, also I am without any idea how should I select the correct points to crop the original .ply. Also, I would like how could I do to crop the armrest, isolate the chair from the ground for example to more examples to understand better this concept
Beta Was this translation helpful? Give feedback.
All reactions