name update
This commit is contained in:
parent
deae8d9897
commit
f4f2e5f836
26
README.md
26
README.md
|
@ -28,7 +28,7 @@ pip install -r ./requirements.txt -U # 安装OpenCV Webcam脚本
|
|||
```shell
|
||||
# 第一步:创建ow虚拟环境,参见方法一
|
||||
# 第二步:执行pip指令
|
||||
pip install opencv-webcam
|
||||
pip install opencv_webcam
|
||||
```
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@ pip install opencv-webcam
|
|||
|
||||
```shell
|
||||
# 默认按q键退出
|
||||
python opencv-webcam.py
|
||||
python opencv_webcam.py
|
||||
```
|
||||
|
||||
|
||||
|
@ -48,9 +48,9 @@ python opencv-webcam.py
|
|||
```shell
|
||||
# 默认按q键退出
|
||||
# 设置z键退出
|
||||
python opencv-webcam.py -q z
|
||||
python opencv_webcam.py -q z
|
||||
# 设置k键退出
|
||||
python opencv-webcam.py -q k
|
||||
python opencv_webcam.py -q k
|
||||
```
|
||||
|
||||
|
||||
|
@ -58,7 +58,7 @@ python opencv-webcam.py -q k
|
|||
#### :bulb: 自动保存帧
|
||||
|
||||
```shell
|
||||
python opencv-webcam.py -isasf
|
||||
python opencv_webcam.py -isasf
|
||||
```
|
||||
|
||||
|
||||
|
@ -67,7 +67,7 @@ python opencv-webcam.py -isasf
|
|||
|
||||
```shell
|
||||
# 每隔10帧保存一次帧
|
||||
python opencv-webcam.py -isasf -fns 10
|
||||
python opencv_webcam.py -isasf -fns 10
|
||||
```
|
||||
|
||||
|
||||
|
@ -76,7 +76,7 @@ python opencv-webcam.py -isasf -fns 10
|
|||
|
||||
```shell
|
||||
# 默认按a键捕获一帧
|
||||
python opencv-webcam.py -ishsf
|
||||
python opencv_webcam.py -ishsf
|
||||
```
|
||||
|
||||
|
||||
|
@ -85,7 +85,7 @@ python opencv-webcam.py -ishsf
|
|||
|
||||
```shell
|
||||
# 设置z键为捕获键
|
||||
python opencv-webcam.py -ishsf -fck z
|
||||
python opencv_webcam.py -ishsf -fck z
|
||||
```
|
||||
|
||||
|
||||
|
@ -95,9 +95,9 @@ python opencv-webcam.py -ishsf -fck z
|
|||
```shell
|
||||
# 重塑宽度300 高度200
|
||||
# 自动版
|
||||
python opencv-webcam.py -isasf -isrf -rf 300 200
|
||||
python opencv_webcam.py -isasf -isrf -rf 300 200
|
||||
# 手动版
|
||||
python opencv-webcam.py -ishsf -isrf -rf 300 200
|
||||
python opencv_webcam.py -ishsf -isrf -rf 300 200
|
||||
```
|
||||
|
||||
|
||||
|
@ -107,9 +107,9 @@ python opencv-webcam.py -ishsf -isrf -rf 300 200
|
|||
```shell
|
||||
# 宽高缩放比为0.5
|
||||
# 自动版
|
||||
python opencv-webcam.py -isasf -isrf -rrf 0.5
|
||||
python opencv_webcam.py -isasf -isrf -rrf 0.5
|
||||
# 手动版
|
||||
python opencv-webcam.py -ishsf -isrf -rrf 0.5
|
||||
python opencv_webcam.py -ishsf -isrf -rrf 0.5
|
||||
```
|
||||
|
||||
|
||||
|
@ -118,6 +118,6 @@ python opencv-webcam.py -ishsf -isrf -rrf 0.5
|
|||
|
||||
```shell
|
||||
# 设置保存路径,默认保存路径为./WebcamFrame
|
||||
python opencv-webcam.py -fsd custom_dir -isasf # 以自动版为例
|
||||
python opencv_webcam.py -fsd custom_dir -isasf # 以自动版为例
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue