报错1:importError :numpy.core.multiarrary failed to import

知道问题是numpy和opencv-python版本不匹配,将两个升级到最高,出现报错2

报错2:`np.sctypes` was removed in the NumPy 2.0 release. Access dtypes explicitly instead.. Did you mean: 'dtypes'?

安装numpy

pip install -U numpy<2.0.0

再安装opencv-python

pip install -U opencv-python<=4.6.0.66

问题解决

请勤记笔记^_^

GitHub 加速计划 / opencv31 / opencv
217
20
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:1 个月前 )
75598e53 Fix QRCodeDetector::detectAndDecode crash #27877 ### Pull Request Readiness Checklist Fix #27807 The problem is that when we find closest points from hull, we can get same closest point for several different points See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake 1 天前
b6447542 Fix invalid memory access in USAC #27865 ### Pull Request Readiness Checklist Fix #27863 See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake 2 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐