Comments (2)
CMakeLists.txt
in ./thirdparty/orbslam2_features
doesn't seem to locate any opencv
although its Python counterpart is well in place (likely under .python/venvs/pyslam/lib/python3.6/site-packages/cv2
).
Installing it with
brew install opencv@3
(since brew install opencv
tries to fetch opencv4 through a dysfunctional URL somehow so it ends up failing) and linking it in pyslam/thirdparty/orbslam2_features/CMakeLists.txt
, line 15, through
# finds freshly brew-installed opencv
find_package(OpenCV REQUIRED PATHS "/usr/local/opt/opencv@3")
instead of
find_package(OpenCV ${OPENCV_VERSION} QUIET)
fixes the issue.
Any opencv
related issues regarding building (notably pyslam_utils
in ./cpp
) can be patched with this workaround. The CMakeLists.txt
will proceed but launching python3 -O main_slam.py
will produce
Class CaptureDelegate is implemented in both /Users/username/.python/venvs/pyslam/lib/python3.6/site-packages/cv2/cv2.cpython-36m-darwin.so (0x119e26590) and /usr/local/opt/opencv@3/lib/libopencv_videoio.3.4.dylib (0x13947cfe0). One of the two will be used. Which one is undefined.
from pyslam.
Thank you very much for your feedback!
I see the problem is now connected to the fact that
brew install opencv
does not work anymore (as you reported above). I am seeing it on my mac too and this is a bit annoying since it was perfectly working and so I got installed opencv4 sometime ago!
In my setup, if I run (as expected, see the launch_main_*.sh
files)
. pyenv-activate.sh # required to active the pyslam python env
python3 -c "import cv2; print(cv2.__version__)"
I correctly get 4.5.1
(as I originally expected).
As for the issue you have with the message
Class CaptureDelegate is implemented in both /Users/username/.python/venvs/pyslam/lib/python3.6/site-packages/cv2/cv2.cpython-36m-darwin.so (0x119e26590) and /usr/local/opt/opencv@3/lib/libopencv_videoio.3.4.dylib (0x13947cfe0). One of the two will be used. Which one is undefined.
I am aware of it and I already reported it in the MAC.md document as an open issue.
Working in order to improve the install procedure.... never-ending story :-)
from pyslam.
Related Issues (20)
- Solving ImportError: ../pyslam/thirdparty/g2opy/lib/g2o.so: undefined symbol: _Py_ZeroStruct
- Seeking clarification on the functions with @property decorator in Frame class in frame.py HOT 1
- Reference material for the SlamDynamicConfig class / Is implementation of search_map_by_projection same as ORB-SLAM2? HOT 1
- is_opencv_version_greater_equal function not working HOT 1
- Why use RANSAC and not USAC from open cv? HOT 3
- How to save slam estimated trajectory for evo evaluate HOT 2
- some question about the edge.set_information in pose_optimization.py HOT 1
- install_all_venv.sh gives error in pangolin lib HOT 2
- What are good parameters for VO? HOT 1
- Can not create "pyslam" environment with python 3.6.9 HOT 1
- Camera pose and map covariance HOT 1
- documentation HOT 1
- Best brutal force SLAM configuration HOT 1
- Error with tensorflow-gpu HOT 2
- ORB_SLAM3 HOT 3
- feature_detector file HOT 2
- webcam error HOT 3
- MatplotLib Not responding HOT 5
- How to reach estimated X,Y,Z,Yaw,Roll and Pitch HOT 14
- Getting error when running the slam HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyslam.