Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to capture a single photo with webcam opencv

cam = cv2.VideoCapture(0)

image = cam.read()[1]

cv2.imshow("image", image)

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

PREVIOUS NEXT
Code Example
Python :: how to center plotly plot title 
Python :: super idol 
Python :: how to make a custom icon for pygame 
Python :: renaming headers pandasd 
Python :: pandas replace column name spaces with underscore 
Python :: 8 ball responses list python 
Python :: migrate skip in django 
Python :: rgb to grayscale python opencv 
Python :: auto datetime in django models 
Python :: python read xlsb pandas 
Python :: get path to file without filename python 
Python :: python reload class 
Python :: python subprocess.run output 
Python :: pyspark date to week number 
Python :: read .dat python 
Python :: how to find the minimum value in a dictionary python 
Python :: horizontal bar chart with seaborn 
Python :: python how to generate random number in a range 
Python :: python except error as e 
Python :: python color in console 
Python :: Can only use .dt accessor with datetimelike values 
Python :: how to separate year from datetime column in python 
Python :: Update all packages using pip on Windows 
Python :: rename df column 
Python :: normalize image in cv2 
Python :: 2 list difference python 
Python :: how to read tsv file python 
Python :: inspectdb django 
Python :: show rows with a null value pandas 
Python :: python 2 decimal places 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =