Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

show a video cv2

import cv2
cap = cv2.VideoCapture(0)
while True:
  ret, frame = cap.read()
  if not ret:
  	break
  else:
    cv2.imshow('frame',frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
      break

cap.release()
cv2.destroyAllWindows()
Comment

PREVIOUS NEXT
Code Example
Python :: python cv2 read image grayscale 
Python :: python how to save a Seaborn plot into a file 
Python :: python get absolute path of file 
Python :: python opencv number of frames 
Python :: python find the key with max value 
Python :: dataframe all companies except 
Python :: convert column string to int pandas 
Python :: pytorch check gpu 
Python :: how to check if left mousebuttondown in pygame 
Python :: argparse boolean default 
Python :: beuatiful soup find a href 
Python :: numpy find rows containing nan 
Python :: how to set the screen brightness using python 
Python :: pandas convert all column names to lowercase 
Python :: pygame draw circle 
Python :: numpy install wtih conda 
Python :: cmd run ps1 file in background 
Python :: dataframe column contains string 
Python :: 2 list difference python 
Python :: epoch to datetime python 
Python :: random character generator python 
Python :: save dictionary python 
Python :: tkinter bind to window close 
Python :: python random number 
Python :: comment dériver une classe python 
Python :: python pil image flip 
Python :: pytest skip 
Python :: python find index of highest value in list 
Python :: how to get input in tkinter 
Python :: python most common element in list 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =