Sample Photo Editor
This Python script is a simple photo editor application built using the Streamlit library. The app allows users to capture images using their webcam and convert them to grayscale. Additionally, the app provides a feature to upload images from the user's local file system and convert them to grayscale as well. The purpose of this app is to explore the features of streamlit by building a simple yet fully functional web application.
Features
Webcam Capture: The app allows users to capture images using their webcam and displays the grayscale version of the captured image.
Image Upload: Users can upload images from their local file system, and the app will convert the uploaded image to grayscale and display it.
Usage
You can visit this URL to try out the app for yourself: [https://webcam-app-1-convenience.streamlit.app/]
Alternatively, if you have Python installed:
Run the Python script using the following command:
streamlit run web.py
The app will open in your default web browser. To capture an image using the webcam, click the "Start camera" expander and allow the app to access your webcam. To upload an image, click the "Upload Image" button and select the file from your local file system. The app will display the grayscale version of the captured or uploaded image.
Dependencies
- Python 3.x
- Streamlit
- Pillow (PIL)