Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to capture an image with web cam open cv

cam = cv2.VideoCapture(0)

image = cam.read()[1]

cv2.imshow("image", image)

cv2.waitKey(0)
cv2.destroyAllWindows()
Comment

PREVIOUS NEXT
Code Example
Python :: python date add days 
Python :: pycache in gitignore 
Python :: convert list of strings to ints python 
Python :: python list of all states 
Python :: replace all spacec column with underscore in pandas 
Python :: check python version mac 
Python :: webhook discord files 
Python :: python apply a function to a list inplace 
Python :: python simple server 
Python :: pandas dropna specific column 
Python :: how to autosave in python 
Python :: python reload module without restarting 
Python :: instal cython 
Python :: view whole dataset in python 
Python :: python randomly shuffle rows of pandas dataframe 
Python :: python random hex color 
Python :: how to read video in opencv python 
Python :: python time.strptime milliseconds 
Python :: pdb set trace 
Python :: convert negative to zero in list in python 
Python :: choice random word in python from a text file 
Python :: selenium python get innerhtml 
Python :: install multiprocessing python3 
Python :: get file name from url python 
Python :: show image in python 
Python :: sorting rows and columns in pandas 
Python :: python how to read a xlsx file 
Python :: plt.plot width line 
Python :: timestamp to date python 
Python :: how to install python3 on ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =