- 博客(1)
- 收藏
- 关注
原创 opencv+python实现调用摄像头进行拍照保存,并对图像进行置灰处理
import cv2 as cvimport numpy as npimport matplotlib.pyplot as pltdef photo_save(): capture = cv.VideoCapture(0, cv.CAP_DSHOW) while True: ret, frame = capture.read() #ret=return,frame是视频的每一帧 frame = cv.flip(frame,.
2021-08-02 18:21:56
597
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人