SYSU-STAR / H3-Mapping

H3-Mapping: Quasi-Heterogeneous Feature Grids for Real-time Dense Mapping Using Hierarchical Hybrid Representation (submitted to RAL 2024)
GNU General Public License v3.0
64 stars 2 forks source link

关于python3.9安装opencv的问题 #7

Open zfkdsg opened 2 hours ago

zfkdsg commented 2 hours ago

作者您好 我今天想尝试运行H3mapping 代码 再运行命令:python -W ignore demo/run_mapping.py --config configs/replica/room_0.yaml 的时候出现了报错: from cv_bridge.boost.cv_bridge_boost import cvtColorForDisplay, getCvType SystemError: initialization of cv_bridge_boost raised unreported exception 我便想到了你要求的opencv版本的问题 因此我去查阅了opencv版本 显示的是opencv4.10.0 因此我卸载了虚拟环境中的opencv: 使用命令:pip uninstall opencv-python 之后尝试安装对应的版本:pip install opencv-python==4.2.0.32 可是bug显示:ERROR: Ignored the following yanked versions: 3.4.11.39, 3.4.17.61, 4.4.0.42, 4.4.0.44, 4.5.4.58, 4.5.5.62, 4.7.0.68 ERROR: Could not find a version that satisfies the requirement opencv-python==4.2.0.34 (from versions: 3.4.0.14, 3.4.10.37, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.14.53, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.2.54, 4.5.3.56, 4.5.4.60, 4.5.5.64, 4.6.0.66, 4.7.0.72, 4.8.0.74, 4.8.0.76, 4.8.1.78, 4.9.0.80, 4.10.0.82, 4.10.0.84) ERROR: No matching distribution found for opencv-python==4.2.0.34 也就是说 这里没有对应的匹配版本 目前我不知道该如何处理这个问题 希望作者讲解 谢谢

zfkdsg commented 2 hours ago

目前我的第一个想法就是 从opencv官网上下载opencv 4.2.0版本 之后在编译 mkdir build cd build cmake .. make -j8 sudo make install 这样进行下载 请问这是正确的方法吗 感谢回答

JIANG-CX commented 2 hours ago

这里有https://github.com/SYSU-STAR/H2-Mapping?tab=readme-ov-file#faq

Get Outlook for iOShttps://aka.ms/o0ukef


From: zfkdsg @.> Sent: Saturday, October 26, 2024 2:47:00 PM To: SYSU-STAR/H3-Mapping @.> Cc: Subscribed @.***> Subject: Re: [SYSU-STAR/H3-Mapping] 关于python3.9安装opencv的问题 (Issue #7)

目前我的第一个想法就是 从opencv官网上下载opencv 4.2.0版本 之后在编译 mkdir build cd build cmake .. make -j8 sudo make install 这样进行下载 请问这是正确的方法吗 感谢回答

― Reply to this email directly, view it on GitHubhttps://github.com/SYSU-STAR/H3-Mapping/issues/7#issuecomment-2439397758, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APMKKNRG3QCGVGKXYMZL74DZ5M3GJAVCNFSM6AAAAABQUQU3TOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGM4TONZVHA. You are receiving this because you are subscribed to this thread.Message ID: @.***>