Scripts for Large Scene Dataset and Benchmark Paper
-
agi_201.py This is the running scripts for Agi Metashape Pro 2.0.1 Version. The official Document is on Metashape Python Reference 2.0.1. The scipts did the following steps:
- Create a new project and a new chunk
- Add the .jpg / .png images in the given folder path
- import the blocks exchange format camera calibrations
- export the reference txt file and import it into the same chunk, so as to add the reference information. n: image label xyz: coordinates abc: rotation angles uvw: estimated coordinates def: estimated orientation angles
- Modify xyz error to 0.03 meter.
- Align the images
- Build depth images and pointcloud
- Export block exchange format camera calibrations and pointcloud
How to use the script
cd AgiScripts <Metashape Folder>/Metashape.exe -r agi_201.py \ --img_folder <Image Folder Path> \ --xml <Blocks Exchange Format xml Path> \ --workspace <Workspace folder>
Notes: This scrips only fits Metashape 2.0.1. For other version, you may check the other version's document and modify the scripts.
e.g. For Metashape 1.6.5, you may check Metashape Python Reference 1.6.5
buildPointCloud <-> buildDenseCloud