readme update 02

This commit is contained in:
13339479676 2022-01-26 08:04:48 +08:00
parent 37567eb888
commit f74c8b9a3c
1 changed files with 20 additions and 20 deletions

View File

@ -86,7 +86,7 @@ pip install -r ./requirements.txt -U # 安装OpenCV Webcam脚本
#### :white_check_mark: 方法二pip 快速安装PyPi版
#### 方法二pip 快速安装PyPi版
- 第一步创建ows虚拟环境参见方法一
- 第二步执行pip指令
@ -107,7 +107,7 @@ webcam_opencv(is_autoSaveFrame=True, is_compress=True) # 压缩帧
#### :white_check_mark: 方法三docker 镜像安装(容器版)
#### 方法三docker 镜像安装(容器版)
- 第一步:下载镜像
@ -143,7 +143,7 @@ sudo docker exec -it ows /bin/bash
<h3 align="center">使用教程</h3>
<hr>
#### :bulb: 常规调用
#### 💡 常规调用
```shell
# 默认按q键退出
@ -152,7 +152,7 @@ python opencv_webcam.py
#### :bulb: 设备选择
#### 💡 设备选择
```shell
# 多摄像头切换示例默认为0
@ -165,7 +165,7 @@ python opencv_webcam.py -dev rtsp://username:password@xxx.xxx.xxx
#### :bulb: 设置退出键
#### 💡 设置退出键
```shell
# 默认按q键退出
@ -175,7 +175,7 @@ python opencv_webcam.py -q k # 设置k键退出
#### :bulb: 自动保存帧
#### 💡 自动保存帧
```shell
python opencv_webcam.py -isasf
@ -183,7 +183,7 @@ python opencv_webcam.py -isasf
#### :bulb: 每隔n帧保存一次帧
#### 💡 每隔n帧保存一次帧
```shell
# 每隔10帧保存一次帧
@ -192,7 +192,7 @@ python opencv_webcam.py -isasf -fns 10
#### :bulb: 手动保存帧
#### 💡 手动保存帧
```shell
# 默认按a键捕获一帧
@ -201,7 +201,7 @@ python opencv_webcam.py -ishsf
#### :bulb: 自定义捕获键
#### 💡 自定义捕获键
```shell
# 设置z键为捕获键默认为a键
@ -210,7 +210,7 @@ python opencv_webcam.py -ishsf -fck z
#### :bulb: 重塑帧尺寸(自定义宽高)
#### 💡 重塑帧尺寸(自定义宽高)
```shell
# 重塑宽度300 高度200
@ -220,7 +220,7 @@ python opencv_webcam.py -ishsf -isrf -rf 300 200 # 手动版
#### :bulb: 重塑帧尺寸(自定义宽高缩放比)
#### 💡 重塑帧尺寸(自定义宽高缩放比)
```shell
# 宽高缩放比为0.5
@ -230,7 +230,7 @@ python opencv_webcam.py -ishsf -isrf -rrf 0.5 # 手动版
#### :bulb: 自定义保存路径
#### 💡 自定义保存路径
```shell
# 设置保存路径,默认保存路径为./WebcamFrame
@ -239,7 +239,7 @@ python opencv_webcam.py -fsd custom_dir -isasf # 以自动版为例
#### :bulb: 自定义帧目录名称
#### 💡 自定义帧目录名称
```shell
# 设置帧目录名称默认保存路径为frames
@ -249,7 +249,7 @@ python opencv_webcam.py -fdn frames_custom -isasf # 以自动版为例
#### :bulb: 自定义帧名前缀
#### 💡 自定义帧名前缀
```shell
# 设置帧图片的前缀名称
@ -258,7 +258,7 @@ python opencv_webcam.py -isasf -fnp webcam
#### :bulb: 设置帧保存格式
#### 💡 设置帧保存格式
```shell
# 设置JPG质量为100默认为95
@ -269,7 +269,7 @@ python opencv_webcam.py -isasf -fss png -jq 5
#### :bulb: 设置暂停键
#### 💡 设置暂停键
```shell
# 设置w键为暂停键默认为p键
@ -278,7 +278,7 @@ python opencv_webcam.py -p w # 按任意键继续
#### :bulb: 设置保存帧数
#### 💡 设置保存帧数
```shell
# 设置保存100帧
@ -287,7 +287,7 @@ python opencv_webcam.py -isasf -afn 100
#### :bulb: 日志设置
#### 💡 日志设置
```shell
# 日志文件默认保存在项目根目录test.log
@ -300,7 +300,7 @@ python opencv_webcam.py -lm w # 设置为覆盖模式
#### :bulb: 视频帧压缩
#### 💡 视频帧压缩
```shell
# 常规压缩默认test.zip以自动版为例
@ -316,7 +316,7 @@ python opencv_webcam.py -isasf -isc -cs tar -cm w:gz # tar压缩
#### :bulb: 指令查询
#### 💡 指令查询
```shell
# 查询脚本参数