Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7c7452b

Browse files
Update README.md
1 parent c36679e commit 7c7452b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎README.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
# Capturing Images from Webcam Using OpenCV Python
22
Capture an image from the webcam of your system and save it to your machine.
33

4-
Softwares and packages required:
4+
# Softwares and packages required:
55
1. Python, v3.6.7
66
2. Matplotlib, v3.0.2 (to view the captured images or images that have been modified.)
77
3. OpenCV, v3.4.4
8+
9+
# Please read the full document.
10+
11+
# How to use:
12+
1. Run the file webcam-capture-2.py by running the command "python3 webcam-capture-2.py"
13+
2. The webcam will start running.
14+
3. Bring the picture that you want to save in the webcam frame.
15+
4. Once the object is in the right frame, press the key 's' to save a picture.
16+
5. If you want to quit, just press 'q'.
17+
6. After hitting 's' to save the picture,you will get a view of the saved image which will automatically close in 1.6s and a new image file will be created in the same directory as that of the program. The image will be saved as saved_image.jpg
18+
7. The file saved_image is furthered converted to grayscale and then resized to 28x28 size for further use in relevant programs, for example, machine learning, which was my primary requirement of creating this file.
19+
# 8. Do not exit the program by stopping the command. This won't turn off the camera. If you do this, close the terminal to stop the camera from running.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /