cnr-isti-vclab / PyMeshLab

The open source mesh processing python library
GNU General Public License v3.0
793 stars 65 forks source link

Aborted (core dumped) when try to ms.apply_filter("compute_texcoord_parametrization_and_texture_from_registered_rasters") #405

Open heronsaba opened 2 weeks ago

heronsaba commented 2 weeks ago

Facing this aborted (core dumped) in the code below. Anyone has faced this problem and know how to solve it?

import pymeshlab

def save_textured_plane(bundle_out, images_list_txt, plane_ply, output_ply):
    # Load project and mesh, apply filters, and save mesh
    try:
        ms = pymeshlab.MeshSet()
        ms.load_project([bundle_out, images_list_txt])
        ms.load_new_mesh(plane_ply)
        ms.apply_filter("set_camera_per_raster")
        ms.apply_filter("compute_texcoord_parametrization_and_texture_from_registered_rasters")
        ms.save_current_mesh(output_ply)
    except Exception as e:
        print(f"An error occurred: {e}")
alemuntoni commented 1 week ago

Could you provide a reproducible example (with all the inputs necessary to execute the code)?

heronsaba commented 1 week ago

@alemuntoni I was able to solve it. Apparently it was the version of the opencv I was using. I reinstalled and it worked.