MBZUAI-Campus / run_core.sh
Sebastian Cavada
colmap
fb2612e
raw
history blame
837 Bytes
# RUN RECONSTRUCTION
if [ ! -d "./global" ]; then
mkdir -p ./global/campus_core
fi
echo "Running Feature Extractor"
colmap feature_extractor --database_path ./global/database_core.db --image_path ./images --ImageReader.single_camera_per_folder 1 --ImageReader.default_focal_length_factor 0.5 --ImageReader.camera_model OPENCV
echo "Running feature matching..."
colmap matches_importer --database_path ./global/database_core.db --match_list_path ./images/campus_core/image_pairs_exhaustive.txt
echo "Reconstructing 3D model..."
glomap mapper --database_path ./global/database_core.db --image_path ./images --output_path ./global/campus_core --image_list_path ./images/campus_core/image_list.txt
echo "Showing result"
colmap gui --import_path ./global/campus_core/0 --database_path ./global/database_core.db --image_path ./images