pycolmap 安装依赖问题

问题
ImportError: /usr/lib/x86_64-linux-gnu/libfreeimage.so.3: symbol TIFFFieldDataType version

最大的可能是 anaconda 干扰
建议新建环境,使用

conda uninstall libtiff

来排查干扰包。

以及:

ImportError: /home/xx/miniconda3/envs/pycolmap/bin/…/lib/libstdc++.so.6: version `GLIBCXX_3.4.30’ not found (required by /home/xx/miniconda3/envs/pycolmap/lib/python3.10/site-packages/pycolmap.cpython-310-x86_64-linux-gnu.so)

使用如下命令来找到合适的库,注意路径中的一些变化。

rm /home/xx/miniconda3/envs/pycolmap/lib/libstdc++.so.6

ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/xx/miniconda3/envs/pycolmap/lib/libstdc++.so.6

运行python example.py无报错即安装完成
输出结果如下:

I0229 17:55:23.416029 61328 misc.cc:198] 
==============================================================================
Feature extraction
==============================================================================
I0229 17:55:23.883080 61426 feature_extraction.cc:255] Processed file [1/11]
I0229 17:55:23.883148 61426 feature_extraction.cc:258]   Name:            0000.png
I0229 17:55:23.883170 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:23.883185 61426 feature_extraction.cc:287]   Camera:          #1 - SIMPLE_RADIAL
I0229 17:55:23.883199 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:23.883224 61426 feature_extraction.cc:303]   Features:        9946
I0229 17:55:24.537232 61426 feature_extraction.cc:255] Processed file [2/11]
I0229 17:55:24.537397 61426 feature_extraction.cc:258]   Name:            0001.png
I0229 17:55:24.537418 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:24.537436 61426 feature_extraction.cc:287]   Camera:          #2 - SIMPLE_RADIAL
I0229 17:55:24.537454 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:24.537485 61426 feature_extraction.cc:303]   Features:        11510
I0229 17:55:24.760782 61426 feature_extraction.cc:255] Processed file [3/11]
I0229 17:55:24.760860 61426 feature_extraction.cc:258]   Name:            0002.png
I0229 17:55:24.760887 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:24.760911 61426 feature_extraction.cc:287]   Camera:          #3 - SIMPLE_RADIAL
I0229 17:55:24.760936 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:24.760975 61426 feature_extraction.cc:303]   Features:        11740
I0229 17:55:25.449142 61426 feature_extraction.cc:255] Processed file [4/11]
I0229 17:55:25.449203 61426 feature_extraction.cc:258]   Name:            0003.png
I0229 17:55:25.449224 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:25.449244 61426 feature_extraction.cc:287]   Camera:          #4 - SIMPLE_RADIAL
I0229 17:55:25.449265 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:25.449299 61426 feature_extraction.cc:303]   Features:        12264
I0229 17:55:25.669066 61426 feature_extraction.cc:255] Processed file [5/11]
I0229 17:55:25.669126 61426 feature_extraction.cc:258]   Name:            0004.png
I0229 17:55:25.669142 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:25.669157 61426 feature_extraction.cc:287]   Camera:          #5 - SIMPLE_RADIAL
I0229 17:55:25.669173 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:25.669201 61426 feature_extraction.cc:303]   Features:        12009
I0229 17:55:25.884994 61426 feature_extraction.cc:255] Processed file [6/11]
I0229 17:55:25.885076 61426 feature_extraction.cc:258]   Name:            0005.png
I0229 17:55:25.885107 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:25.885130 61426 feature_extraction.cc:287]   Camera:          #6 - SIMPLE_RADIAL
I0229 17:55:25.885154 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:25.885193 61426 feature_extraction.cc:303]   Features:        11486
I0229 17:55:25.903129 61426 feature_extraction.cc:255] Processed file [7/11]
I0229 17:55:25.903163 61426 feature_extraction.cc:258]   Name:            0006.png
I0229 17:55:25.903172 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:25.903180 61426 feature_extraction.cc:287]   Camera:          #7 - SIMPLE_RADIAL
I0229 17:55:25.903190 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:25.903208 61426 feature_extraction.cc:303]   Features:        12631
I0229 17:55:25.945047 61426 feature_extraction.cc:255] Processed file [8/11]
I0229 17:55:25.945097 61426 feature_extraction.cc:258]   Name:            0007.png
I0229 17:55:25.945113 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:25.945128 61426 feature_extraction.cc:287]   Camera:          #8 - SIMPLE_RADIAL
I0229 17:55:25.945142 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:25.945165 61426 feature_extraction.cc:303]   Features:        11855
I0229 17:55:25.993095 61426 feature_extraction.cc:255] Processed file [9/11]
I0229 17:55:25.993171 61426 feature_extraction.cc:258]   Name:            0008.png
I0229 17:55:25.993184 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:25.993196 61426 feature_extraction.cc:287]   Camera:          #9 - SIMPLE_RADIAL
I0229 17:55:25.993207 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:25.993228 61426 feature_extraction.cc:303]   Features:        11867
I0229 17:55:26.040201 61426 feature_extraction.cc:255] Processed file [10/11]
I0229 17:55:26.040246 61426 feature_extraction.cc:258]   Name:            0009.png
I0229 17:55:26.040257 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:26.040266 61426 feature_extraction.cc:287]   Camera:          #10 - SIMPLE_RADIAL
I0229 17:55:26.040277 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:26.040300 61426 feature_extraction.cc:303]   Features:        8319
I0229 17:55:26.082896 61426 feature_extraction.cc:255] Processed file [11/11]
I0229 17:55:26.082928 61426 feature_extraction.cc:258]   Name:            0010.png
I0229 17:55:26.082937 61426 feature_extraction.cc:284]   Dimensions:      3072 x 2048
I0229 17:55:26.082942 61426 feature_extraction.cc:287]   Camera:          #11 - SIMPLE_RADIAL
I0229 17:55:26.082952 61426 feature_extraction.cc:290]   Focal Length:    3686.40px
I0229 17:55:26.082963 61426 feature_extraction.cc:303]   Features:        8445
I0229 17:55:26.180655 61328 timer.cc:91] Elapsed time: 0.046 [minutes]
I0229 17:55:26.185536 61494 misc.cc:198] 
==============================================================================
Exhaustive feature matching
==============================================================================
I0229 17:55:26.199769 61494 feature_matching.cc:234] Matching block [1/1, 1/1]
I0229 17:55:26.743372 61494 feature_matching.cc:47]  in 0.544s
I0229 17:55:26.749917 61494 timer.cc:91] Elapsed time: 0.009 [minutes]
I0229 17:55:26.772656 61259 incremental_mapper.cc:225] Loading database
I0229 17:55:26.773274 61259 database_cache.cc:54] Loading cameras...
I0229 17:55:26.773304 61259 database_cache.cc:64]  11 in 0.000s
I0229 17:55:26.773314 61259 database_cache.cc:72] Loading matches...
I0229 17:55:26.774539 61259 database_cache.cc:78]  55 in 0.001s
I0229 17:55:26.774554 61259 database_cache.cc:94] Loading images...
I0229 17:55:26.780375 61259 database_cache.cc:144]  11 in 0.006s (connected 11)
I0229 17:55:26.780393 61259 database_cache.cc:155] Building correspondence graph...
I0229 17:55:26.797600 61259 database_cache.cc:192]  in 0.017s (ignored 0)
I0229 17:55:26.797619 61259 timer.cc:91] Elapsed time: 0.000 [minutes]
I0229 17:55:26.798959 61259 incremental_mapper.cc:265] Finding good initial image pair
I0229 17:55:26.973801 61259 incremental_mapper.cc:289] Initializing with image pair #5 and #7
I0229 17:55:26.987813 61259 incremental_mapper.cc:294] Global bundle adjustment
I0229 17:55:28.974133 61259 incremental_mapper.cc:376] Registering image #6 (3)
I0229 17:55:28.974166 61259 incremental_mapper.cc:379] => Image sees 2581 / 5558 points
I0229 17:55:30.026219 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:30.575574 61259 incremental_mapper.cc:376] Registering image #8 (4)
I0229 17:55:30.575598 61259 incremental_mapper.cc:379] => Image sees 3910 / 8164 points
I0229 17:55:32.549566 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:33.271772 61259 incremental_mapper.cc:376] Registering image #4 (5)
I0229 17:55:33.271796 61259 incremental_mapper.cc:379] => Image sees 4277 / 8603 points
I0229 17:55:35.241343 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:35.968756 61259 incremental_mapper.cc:376] Registering image #3 (6)
I0229 17:55:35.968783 61259 incremental_mapper.cc:379] => Image sees 4883 / 8301 points
I0229 17:55:38.361263 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:39.148082 61259 incremental_mapper.cc:376] Registering image #2 (7)
I0229 17:55:39.148109 61259 incremental_mapper.cc:379] => Image sees 4986 / 7639 points
I0229 17:55:41.550158 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:42.602877 61259 incremental_mapper.cc:376] Registering image #9 (8)
I0229 17:55:42.602907 61259 incremental_mapper.cc:379] => Image sees 3786 / 6600 points
I0229 17:55:44.907141 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:46.048122 61259 incremental_mapper.cc:376] Registering image #1 (9)
I0229 17:55:46.048151 61259 incremental_mapper.cc:379] => Image sees 4263 / 5440 points
I0229 17:55:48.382437 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:49.597429 61259 incremental_mapper.cc:376] Registering image #10 (10)
I0229 17:55:49.597463 61259 incremental_mapper.cc:379] => Image sees 2858 / 5182 points
I0229 17:55:51.666977 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:52.633565 61259 incremental_mapper.cc:376] Registering image #11 (11)
I0229 17:55:52.633602 61259 incremental_mapper.cc:379] => Image sees 2353 / 3493 points
I0229 17:55:54.224957 61259 incremental_mapper.cc:41] Retriangulation and Global bundle adjustment
I0229 17:55:55.178208 61259 timer.cc:91] Elapsed time: 0.473 [minutes]

Images registered: 100%|███████████████████████████████████████████████████████████████████████████████████████| 11/11 [00:28<00:00, 0.39/s]
I0229 17:55:55.193272 61259 example.py:run:56] #0 Reconstruction:
        num_reg_images = 11
        num_cameras = 11
        num_points3D = 13144
        num_observations = 60774
        mean_track_length = 4.62371
        mean_observations_per_image = 5524.91
        mean_reprojection_error = 0.416984
  • 6
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值