📌  相关文章
📜  Opencv 网络摄像头 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:56.372000             🧑  作者: Mango

代码示例5
import cv2
frameWidth = 640
frameHeight = 480
cap = cv2.VideoCapture(0)
cap.set(3, frameWidth)
cap.set(4, frameHeight)
cap.set(10,150)
while True:
    success, img = cap.read()
    cv2.imshow("Result", img)
    if cv2.waitKey(1) and 0xFF == ord('q'):
        break