v03 update

This commit is contained in:
13339479676 2022-01-08 09:43:47 +08:00
parent a11702ea5a
commit fee46975a9
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ from utils.frame_opt import frame_opt
def parse_args(known=False):
parser = argparse.ArgumentParser(description='OpenCV Webcam Script v0.2')
parser = argparse.ArgumentParser(description='OpenCV Webcam Script v0.3')
parser.add_argument('--device', '-dev', default='0',
type=str, help='device index for webcam, 0 or rtsp')
parser.add_argument('--quit', '-q', default="q",
@ -81,7 +81,7 @@ def webcam_opencv(device_index=0, quit_key="q", pause_key="p", is_autoSaveFrame=
frame_savePath.mkdir(parents=True, exist_ok=True) # 创建目录
frame_num = 0 # 帧数
ows_version = 'OpenCV Webcam Script v0.2' # 版本号
ows_version = 'OpenCV Webcam Script v0.3' # 版本号
while(1):
wait_key = cv2.waitKey(20) & 0xFF # 键盘监听
ret, frame = cap.read() # 捕获画面

2
v03.md
View File

@ -7,7 +7,7 @@
### 功能更新
- 加入rtsp功能
- 加入rtsp功能比如rtsp://username:password@xxx.xxx.xxx
### BUG修复