This Software Captures an image by accessing video or the webcam of your system and save it to your pc.
- Python, v3.9.6
- Matplotlib, v3.0.2 pip3 install matplotlib
- OpenCV, v3. pip install python3-opencv
Read the full document.
- Run the file Code_WebCam_Capture.py
- The webcam will start running.
- Bring the picture that you want to save in the webcam frame.
- Once the object is in the right frame, press the key 's' to save a picture.
- If you want to quit, just press 'q'.
- 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
- The file saved_image is furthered converted to grayscale and then resized to 30x30 size for further use in relevant programs, for example, machine learning, which was my primary requirement of creating this file.