在MATLAB中使用opencv
opencv
OpenCV: 开源计算机视觉库
项目地址:https://gitcode.com/gh_mirrors/opencv31/opencv
免费下载资源
·
因为最近在学计算机视觉,少不了要用一些图像处理的工具,但是下载很多编译器都挺耗内存的,并且我也懒,所以电脑上一些无用还在的东西便不想去清理。还要下其他编译器的我也觉得麻烦。刚好我最近在使用MATLAB,了解它的功能还是很强大的,所以就想在这个基础上来进行图像作业的处理。然后看了几篇在MATLAB上安装opencv的文章,我感觉云里雾里的,主要是不想费劲力气去这里下载,又去哪里安装,改路径等等的,头都绕晕了。
后面看到一篇文章说在MATLAB里就可以直接安装,然后我就去了试了试,真的很方便,没想到这么简单。
步骤如下:
1.打开MATLAB软件->在APP的界面里点击获取更多APP/或则在主页里点击附加功能(获取更多功能)->以上两种方式都能打开下面的小窗口->直接搜索需要的(opencv)->点击安装即可(而且这个点进去还有视频教程,这是真可以,虽然是英文,但是可以翻译成中文)
2.安装成功后就可以得到opencv的一个.m文件的参考(如下图所示)
3.其实到这里我也以为安装好这个opencv就可以调用了,但是我在命令行里试过才知道,不可以,显示没有编译器(搞忘截图了)。(当时没想到,应该要有一个合适它的编译器)所以接下来就是安装它的编译器,也很简单,也是在这个附加功能里可以下载,如下图(MinGW-w64):
4.现在一切都就绪了,然后通过输入mex -setup c++,在命令行中得到如下即表示成功。
5.最后是我用一张图的演示如下:(成功!)
GitHub 加速计划 / opencv31 / opencv
144
15
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:3 个月前 )
d9a139f9
Animated WebP Support #25608
related issues #24855 #22569
### Pull Request Readiness Checklist
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 天前
09030615
V4l default image size #25500
Added ability to set default image width and height for V4L capture. This is required for cameras that does not support 640x480 resolution because otherwise V4L capture cannot be opened and failed with "Pixel format of incoming image is unsupported by OpenCV" and then with "can't open camera by index" message. Because of the videoio architecture it is not possible to insert actions between CvCaptureCAM_V4L::CvCaptureCAM_V4L and CvCaptureCAM_V4L::open so the only way I found is to use environment variables to preselect the resolution.
Related bug report is [#25499](https://github.com/opencv/opencv/issues/25499)
Maybe (but not confirmed) this is also related to [#24551](https://github.com/opencv/opencv/issues/24551)
This fix was made and verified in my local environment: capture board AVMATRIX VC42, Ubuntu 20, NVidia Jetson Orin.
### Pull Request Readiness Checklist
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 天前
更多推荐
已为社区贡献1条内容
所有评论(0)