This project demonstrates an interactive web application for depth estimation from images using advanced AI techniques. Users can upload their own images and obtain instant depth maps, showcasing the power of computer vision. The app leverages pre-trained models provided by Intel and utilizes various powerful tools and libraries.
- Image Upload: Users can upload images in various formats (JPG, JPEG, PNG).
- Depth Estimation: Generates a depth map for the uploaded image using Intel's pre-trained DPT model.
- Interactive Web Interface: Built with Streamlit, providing an easy-to-use interface.
- Real-time Processing: Instantaneous processing and display of depth estimation results.
- Streamlit: For creating the interactive web interface.
- Hugging Face Transformers: Using Intel's DPT model for depth estimation.
- Intel: Providing pre-trained models optimized for performance.
- PyTorch: For handling deep learning model operations.
- Pillow: For image processing tasks.
- Autonomous Driving: Enhances navigation systems with accurate depth data.
- Augmented Reality (AR): Improves the overlay of virtual objects in real-world scenes.
- Robotics: Assists in the navigation and interaction of robots with their environments.
- Photography: Enables advanced photo editing techniques such as background blurring and depth-based enhancements.
-
Clone the repository:
git clone https://github.com/Josoriop9/DPT_Project cd depth-estimation-web-app
-
Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate
-
Install the required packages:
pip install xyz
-
Run the Streamlit application:
streamlit run app.py
-
Open your web browser and navigate to the URL provided by Streamlit (usually
http://localhost:xyz01
).
- Upload an image using the file uploader in the web interface.
- Wait for the app to process the image and display the depth estimation result.
- The original image and its corresponding depth map will be displayed side by side.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
- Thanks to Intel for providing the pre-trained models.
- Inspired by the work of Robert Chesebrough on depth estimation.
Feel free to modify and expand upon this template to better fit your project's specifics and personal preferences.