v03 update
This commit is contained in:
parent
a11702ea5a
commit
fee46975a9
|
@ -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() # 捕获画面
|
||||
|
|
Loading…
Reference in New Issue