opencv-python: cv2.findEssentialMat w/ USAC_ACCURATE throws LAPACK/Eigen error from pypi wheel
Expected behaviour
I expect the library not to crash or throw an error:
Actual behaviour
error: OpenCV(4.5.3) /tmp/pip-req-build-l1r0y34w/opencv/modules/calib3d/src/usac/essential_solver.cpp:197: error: (-213:The function/feature is not implemented) To use essential matrix solver LAPACK or Eigen has to be installed! in function 'estimate'
but I installed this from the pypi wheel. I would expect auditwheel
or delocate
to have provided the Eigen dependencies
Steps to reproduce
- example code
!pip install opencv_python==4.5.3.56
then
i2Ei1, inlier_mask = cv2.findEssentialMat(
uv_norm_i1[match_indices[:, 0]],
uv_norm_i2[match_indices[:, 1]],
K,
method=cv2.USAC_ACCURATE,
threshold=self._estimation_threshold_px / fx,
prob=RANSAC_SUCCESS_PROB,
)
- operating system + architecture (e.g. x86)
uname -a
Linux 9f3c72e6a869 5.4.104+ #1 SMP Sat Jun 5 09:50:34 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
- opencv-python version
import cv2
cv2.__version__
4.5.3
Issue submission checklist
-
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (1 by maintainers)
Commits related to this issue
- Merge pull request #547 from asenyaev/asen/lapack_issue Fix lapack issue #534 — committed to opencv/opencv-python by asenyaev 3 years ago
OpenCV-Python 4.5.4 packages just released to Pypi. LAPACK is enabled for all Linux configurations, MacOS (accelerate framework), but not Windows. The team will work on Windows support for the next release.