This project aims to use open-source depth estimation models to adding light sources that were not originally present in the scene and show the results on web page.
The goal of this project is to provide a solution for augmenting images with additional light sources using Depth Anything ,Blinn-Phong model and OpenGL for rendering. Users can interact with the web interface based on Gradio, upload their images, and preview the enhanced results in real-time.
- Onnx Runtime
- OpenCV
- Gradio
- PyOpenGL
- pyglfw
- git clone this repository:
git clone https://github.com/CatxFish/Add_Light.git
- install dependency
ip install -r requirements.txt
- Run
python app.py
-
If you can't run PyOpenGL on Windows, please check this
-
Since this project renders image by pyglfw, it does not support headless OS environment such as Google Colab