Skip to content

mubinasyed28/image-colourization-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-Colourization-Project

This project demonstrates an image colorization application using Python, OpenCV, and a convolutional neural network (CNN). The project takes grayscale images as input and outputs their colorized versions using a pre-trained model.

Features:

  1. Converts grayscale images to colorized versions.
  2. Utilizes a pre-trained model for efficient and accurate colorization.
  3. Employs OpenCV for image processing and visualization.

How It Works

  1. Pre-trained Model:
  1. Input Processing:
  • The input grayscale image is resized and preprocessed to match the input dimensions required by the CNN.
  • The luminance channel is extracted and normalized.
  1. Colorization:
  • The pre-trained model predicts the chrominance channels.
  • These channels are combined with the original luminance channel to form a colorized image.
  1. Post-Processing:
  • The colorized image is converted back to the BGR color space and scaled to standard image intensity levels.
  • The result is displayed using OpenCV.

Prerequisites:

  1. Python (>=3.6)
  2. OpenCV (>=4.0)
  3. Numpy

Usage:

  • Run the script to colorize an image: python colorize.py --image

Acknowledgments:

  1. The pre-trained model used in this project is developed by Richard Zhang et al.
  2. Model source: https://www.dropbox.com/s/dx0qvhhp5hbcx7z/colorization_release_v2.caffemodel?dl=1.
  3. Special thanks to OpenCV for simplifying image processing tasks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages