# opencv **Repository Path**: zyly2033/opencv ## Basic Information - **Project Name**: opencv - **Description**: opencv学习教程 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 31 - **Forks**: 10 - **Created**: 2022-02-26 - **Last Updated**: 2025-09-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: OpenCV ## README ### 一、环境搭建 #### 1.1 opencv安装 ```shell pip install opencv-python==3.4.14.51 -i https://pypi.tuna.tsinghua.edu.cn/simple pip install opencv-contrib-python==3.4.14.51 -i https://pypi.tuna.tsinghua.edu.cn/simple ``` 如果安装指定版本: ```shell opencv-python==3.4.18.65 opencv-python==4.3.0.38 ``` #### 1.2 opencv安装 ```shell pip uninstall opencv-python pip uninstall opencv-contrib-python ``` ##### 1.3 上传gitee 先输入: ```shell git remote rm origin ``` 再输入: ```shell git remote add origin https://gitee.com/zyly2033/opencv.git ```` 如果远程库不为空必须做这一步,否则后面的提交会失败; ```shell git pull --rebase origin master ``` 把当前分支master推送到远程: ```shell git push -u origin master ```