readme update

This commit is contained in:
13339479676 2021-12-29 19:56:07 +08:00
parent 6ad6c977ad
commit c0acf438b7
1 changed files with 17 additions and 8 deletions

View File

@ -4,17 +4,17 @@
### :sparkles: 更新
- `2021-12-29` **OpenCV Webcam v0.1.0正式上线**
- `2021-12-29` **[opencv-webcam-script v0.1](https://pypi.org/project/opencv-webcam-script/0.1/)正式上线**
### :zap: 安装教程
#### :white_check_mark: 方法一Linux Shell版
#### :white_check_mark: 方法一Linux Shell版(开发版)
```shell
# 克隆项目
git clone https://gitee.com/CV_Lab/opencv-webcam.git
git clone https://gitee.com/CV_Lab/opencv_webcam.git
# 创建conda虚拟环境以python 3.8为例
conda create -n ow python==3.8 # 虚拟环境名称为ow
conda activate ow # 激活虚拟环境
@ -23,12 +23,21 @@ pip install -r ./requirements.txt -U # 安装OpenCV Webcam脚本
#### :white_check_mark: 方法二pip 快速安装
#### :white_check_mark: 方法二pip 快速安装API版
```shell
# 第一步创建ow虚拟环境参见方法一
# 第二步执行pip指令
pip install opencv_webcam
- 第一步创建ow虚拟环境参见方法一
- 第二步执行pip指令
```shell
pip install opencv-webcam-script
```
- 第三步编写python程序
```python
from opencv_webcam.opencv_webcam import webcam_opencv
# 直接使用webcam_opencv
webcam_opencv(device_index=0, quit_key='q', is_autoSaveFrame=False, frame_saveDir='./webcam', frame_nSave=1, is_headSaveFrame=False, frame_capKey='a', is_resizeFrame=False, resize_frame=[640, 480], resizeRatio_frame=1.0)
```