kopia lustrzana https://github.com/OpenDroneMap/ODM
![]() * Create README.md for fix_ply * Create fix_ply.py * Update fix_ply.py to match current * Update README.md to match Jaime's description * Add more description |
||
---|---|---|
.. | ||
README.md | ||
fix_ply.py |
README.md
Fix Ply
Use to translate a modified ply into a compatible format for subsequent steps in ODM. Via Jaime Chacoff, https://community.opendronemap.org/t/edited-point-cloud-with-cloudcompare-wont-rerun-from-odm-meshing/21449/6
The basic idea is to process through ODM until the point cloud is created, use a 3rd party tool, like CloudCompare to edit the point cloud, and then continue processing in OpenDroneMap.
This useful bit of python will convert the PLY exported from CloudCompare back into a compatible format for continued processing in OpenDroneMap.
- Run project in WebODM and add this to your settings:
end-with: odm-filterpoints
- Once complete, go to your NodeODM container and copy
/var/www/data/[Task ID]/odm-filterpoints
directory - Open CloudCompare and from
odm-filterpoints
directory you've copied, openpoint_cloud.ply
- In the box that pops up, add a scalar field
vertex - views
- To see the actual colours again - select the point cloud, then in properties change colours from "Scalar field" to "RGB"
- Make your changes to the point cloud
- Compute normals (Edit > Normals > Compute)
- Save PLY file as ASCII
- Run Python file above to fix PLY file and convert to binary
- Copy
odm_filterpoints
directory (or justpoint_cloud.ply
) back into NodeODM container - Restart project in WebODM "From Meshing" (don't forget to edit settings to remove
end-with: odm-filterpoints
or it's not going to do anything).