Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - nedimhodzic42

Pages: [1]
1
I am currently developing a script using metashape in a standalone python module (as per the steps found in: https://agisoft.freshdesk.com/support/solutions/articles/31000148930-how-to-install-metashape-stand-alone-python-module) which is used to transform video files into point clouds. I've tested ran this script in the GUI and it works but when I run it in a standalone module errors begin to occur. To be more specific, the chunk.importVideo command is not working at all as no frames are being produced from the video file provided. This causes other commands down the line to fail as well. If anyone could provide some assistance on this issue that would be appreciated. I'm currently developing on a mac with an M1 chip, but my team has also tested this in windows and linux environments and the same error occurs.

I'll provide a sample of my code below as well:

doc = Metashape.Document()
doc.clear()
chunk = doc.addChunk()

chunk.importVideo(
        path="to_process/Record_69.mov",
        image_path=os.path.join(framesdir, "frame{filenum}.jpg"),
        frame_step=Metashape.CustomFrameStep,
        custom_frame_step=5,
    )

Pages: [1]