三維重建第一步:從視頻中提取若干圖像幀用於後續的三維重建,以Tanks and Temples數據集Training Set中的Ignatius場景爲例進行說明
1. Prepare Images
- 圖像序列:直接到Step 2
- 視頻: 需要將視頻轉爲圖像幀,具體如下步驟:
Ignatius.mp4視頻信息
- 視頻幀率:29.97FPS
- 圖像分辨率:3840x2160 (4K分辨率)
- 幀數:~8000幀
Get jpg images from the video:
> ffmpeg -i Ignatius.mp4 -q:v 1 -vf fps=1 Ignatius/%06d.jpg
Resize:
> mogrify -quality 100 -resize 50% -path Ignatius2/ Ignatius/*.jpg
Write EXIF data:
> exiftool -overwrite_original -FocalLength="21" -focallengthin35mmformat="21" -make="Sony" -model="A7SM2" Ignatius2/*.jpg
2. Make a Reconstruction
- colmap cmd 命令行重建:https://www.cnblogs.com/Todd-Qi/p/10792685.html
- colmap GUI 圖形化界面重建:https://www.cnblogs.com/Todd-Qi/p/17250204.html
3. Evaluation
optional
4. Tanks and Temples數據集
+── Tanks and Temples benchmark
│ +── training data
│ +── testing data
│ │ +── intermediate
│ │ +── advanced