登录 注册
当前位置:主页 > 资源下载 > 32 > 树莓派opencv_3.4.0.0.0.0.rar下载

树莓派opencv_3.4.0.0.0.0.rar下载

  • 更新:2024-08-23 20:55:38
  • 大小:81.69MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Dell - 存储
  • 格式:RAR

资源介绍

1. 配置并更新树莓派系统 1,sudo raspi-config // 进入后打开摄像头、SSH 2,sudo apt-get update 3,sudo apt-get upgrade 4,sudo rpi-update 2. 安装OpenCV的相关工具 sudo apt-get install build-essential cmake git pkg-config 3. 安装OpenCV的图像工具包 1,sudo apt-get install libjpeg8-dev 2,sudo apt-get install libtiff5-dev 3,sudo apt-get install libjasper-dev 4,sudo apt-get install libpng12-dev 4. 安装视频I/O包 sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev 5.安装gtk2.0和优化函数包 1,sudo apt-get install libgtk2.0-dev 2,sudo apt-get install libatlas-base-dev gfortran 6. 下载OpenCV源码 git clone https://github.com/opencv/opencv.git 这里我使用迅雷下载 zip 文件 用 unzip 命令解压 git clone https://github.com/opencv/opencv-4.1.0.git ''' opencv建议安装3.3及以后版本吧,对以后想要深度学习,神经网络都很方便 要注意的一点是一定要先安装CUDA后安装opencv,否则不能使用GPU,很麻烦 先安装一下依赖吧,很多,还是全一点好,要比到时候报错好很多     sudo apt-get install --assume-yes libopencv-dev build-essential cmake git libgtk2.0-dev pkg-config python-dev python-numpy libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libxine2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev libtbb-dev libqt4-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils unzip       sudo apt-get install build-essential cmake git       sudo apt-get install ffmpeg libopencv-dev libgtk-3-dev python-numpy python3-numpy libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libxine2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libv4l-dev libtbb-dev qtbase5-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils unzip 依赖安装好后就可以去opencv官网,下载opencv3.3了 https://opencv.org/opencv-3-3.html,选择最后的The source code for all platforms can be downloaded from GitHub: zip ''' 7. 安装OpenCV // 根据下载的版本而定 1,cd opencv // 创建release文件夹 2,mkdir release // 进入release目录下 3,cd release // cmake读入所有源文件之后,自动生成makefile 4,sudo cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local .. // 编译, 请进入 VNC 或者直接操作树莓派 5,sudo make // 安装 6,sudo make install //更新动态链接库 7,sudo ldconfig