Click below card , Focus on “OpenCV And AI Deep learning ” official account !
This article will share with you a OpenCV DNN Example of module coloring black and white old photos , And give Python and C++ Version source code .
This project is based at the University of California , Berkeley ,Richard Zhang,Phillip Isola and Alexei A. Efros Research work developed --Colorful Image Colorization, Corresponding paper address :https://arxiv.org/pdf/1603.08511.pdf, Author project github Address :https://github.com/richzhang/colorization/tree/caffe
As explained in the original paper , The authors accept the potential uncertainty of the problem , Make it a classification task , Use category rebalancing during training to increase color diversity in results . Artificial intelligence (AI) Method at the time of testing CNN(“ Convolutional neural networks ”) As a feedforward transfer , And in 100 Training on more than ten thousand color images .
The color space model to be used in this project is “Lab”.CIELAB Color space ( Also known as CIE L*a*b* Or sometimes abbreviated to “Lab” Color space ) It's the international lighting Commission (CIE) stay 1976 Color space defined in . It represents the color as three values ,L* Indicates brightness ,a* and b* It means green 、 Red and blue yellow .
The process of deep learning :