MBZUAI-Campus / run_core.sh
Sebastian Cavada
adding prepare run
e9917f4
raw
history blame
983 Bytes
# RUN RECONSTRUCTION
if [ ! -d "./global" ]; then
mkdir ./global
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 ./campus_core
ENDIN=$(date +"%H:%M:%S")
curl -X POST -H 'Content-Type: application/json' -d "{\"chat_id\": \"777722458\", \"text\": \"FINE COLMAP\", \"disable_notification\": true}" https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage
echo "Showing result"
colmap gui --import_path ./campus_core/0 --database_path ./global/database_core.db --image_path ./images