From f4f2e5f83611b12f4b0c539bb31c607b4ace0203 Mon Sep 17 00:00:00 2001 From: 13339479676 Date: Wed, 29 Dec 2021 18:39:29 +0800 Subject: [PATCH] name update --- README.md | 26 +++++++++++++------------- opencv-webcam.py => opencv_webcam.py | 0 2 files changed, 13 insertions(+), 13 deletions(-) rename opencv-webcam.py => opencv_webcam.py (100%) diff --git a/README.md b/README.md index 5d2c3a7..901138d 100644 --- a/README.md +++ b/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 # 以自动版为例 ``` diff --git a/opencv-webcam.py b/opencv_webcam.py similarity index 100% rename from opencv-webcam.py rename to opencv_webcam.py