This project aims to provide a comprehensive solution for image and video colorization using deep learning techniques. Using the help of CIELab color space, convolutional neural networks (CNNs) and modern web technologies, the project enables users to easily add color to grayscale images and videos.
The CIELAB (or LAB) color space is a color representation designed to approximate human vision. It separates an image into three channels:
-
L → Lightness (intensity/brightness)
-
a → Green to Red color component
-
b → Blue to Yellow color component
In this project, the L channel (grayscale input) is fed to the neural network, which predicts the missing a and b channels. Combining them reconstructs the full-color image. LAB is chosen because it is device-independent and better aligned with human perception of color compared to RGB.
- Image colorization: Convert grayscale images to colorized versions.
- Video colorization: Extend image colorization to video content.
- User-friendly interface: Web-based interface for easy interaction and colorization.
- Real-time processing: Instant colorization of uploaded images and videos.
- Streamlit integration: Utilizes Streamlit for web application development and deployment.
- Python 3.110
- OpenCV
- Streamlit
- Clone the repository: git clone https://github.com/saadii007/Image-Video-Colorization-using-LAB-Space.git
- Install dependencies: pip install -r requirements.txt
- Run the application: streamlit run app.py
- Access the application: Open your web browser and navigate to http://localhost:8501.
- The colorization model is based on research by Richard Zhang, Phillip Isola, and Alexei A. Efros. In ECCV, 2016.
- Video Colorization

- Image Colorization