how to show webcam in opencv
import cv2
cap = cv2.VideoCapture(0)
while True:
success, img = cap.read()
cv2.imshow("Webcam", img)
if cv2.waitKey(1) == ord('q'):
break
how to show webcam in opencv
import cv2
cap = cv2.VideoCapture(0)
while True:
success, img = cap.read()
cv2.imshow("Webcam", img)
if cv2.waitKey(1) == ord('q'):
break
Opencv Webcam
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us