Forum

Author Topic: Basic Workflow to Output .ply model  (Read 2742 times)

tjs43

  • Newbie
  • *
  • Posts: 5
    • View Profile
Basic Workflow to Output .ply model
« on: March 27, 2017, 03:04:42 AM »
Hey guys,

I'm new to PhotoScan, and could use a little bit of help. I'm trying to create a script that will automatically generate and export a .ply model and an .opk file of the camera orientation when given a directory full of images, while also outputting the undistorted images used.

I've found the functions required to accomplish those tasks (.exportModel, .exportCamera, and .undistort) however I'm unsure of the workflow required prior to performing these functions. So far, I can comfortably locate my photo directory and add the photos to my "chunk." After adding the photos to the "chunk," I am in need of a little guidance. Any help would be greatly appreciated!

T.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Basic Workflow to Output .ply model
« Reply #1 on: March 27, 2017, 12:06:41 PM »
Hello tjs43,

After adding the photos you need to align cameras, in API it it split into two parts: chunk.matchPhotos() and chunk.alignCameras() with some parameters. Then build dense cloud and mesh: chunk.buildDenseCloud() and chunk.buildMesh()
The texture generation is again split into two part: chunk.buildUV() and chunk.buildTexture().

Cameras and undistorted images can be exported after alignment step already, whereas model should be exported after mesh is generated and textured (if you are interested in texture).
Best regards,
Alexey Pasumansky,
Agisoft LLC

tjs43

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Basic Workflow to Output .ply model
« Reply #2 on: March 28, 2017, 07:17:51 PM »
Thank you!