Skip to content

Capturing the photo in real time using Opencv in few lines of code.

Notifications You must be signed in to change notification settings

Arpan-14/Real-time-photo-capturing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Real-time-photo-capturing

Capturing the photo in real time using Opencv in few lines of code as below-

Initially- Open a webcam using cv2.VideoCapture. Create and resize a named window for displaying frames.

Capture and Display Loop- Continuously capture frames from the webcam. Display each frame in a window titled "Press Space to take a Photo"(or any other).

Check for key presses- If the Esc key is pressed, exit the loop and close the program. If the Tab key is pressed, print a message and increment the image counter.

Release- Release the webcam using cam.release(). Close all OpenCV windows using cv2.destroyAllWindows()

About

Capturing the photo in real time using Opencv in few lines of code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published