← Back

ofxOpenCvDnnColorization

github.com/TetsuakiBaba/ofxOpenCvDnnColorization · @TetsuakiBaba
OF 0.10 Computer Vision Machine Learning

ofxOpenCvDnnColorization is an addon for openframeworks, which uses OpenCV based dnn module to colorize a image

5 1 Last commit 7y ago Created 7y ago

Forks

Forks pushed to more recently than TetsuakiBaba/ofxOpenCvDnnColorization itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

n1ckfg/ofxOpenCvDnnColorization by @n1ckfg · ★ 0 · pushed 2y ago

README

ofxOpenCvDnnColorization



Description

ofxOpenCvDnnColorization is an addon for openframeworks.

OpenCV v.3.3.1 or upper includes some dnn modules in their own package. Therefore I designed ofxOpenCvDnnColorization with OpenCV v.3.3.1 or upper version.

sample gif

Usage

See Examples for more details
void setup()
{
    ofImage img;
    img.load(ofToDataPath("sample.jpg"));

    colorization.update(img.getPixels());
}
void draw()
{
    ofBackground(0);
    colorization.draw(0,0);
}


Install

1. Clone ofxOpenCvDnnColorization to your of/addon directory

$ git clone https://github.com/TetsuakiBaba/ofxOpenCvDnnColorization.git

2. Download OpenCV.framework to ofxOpenCvDnnColorization/libs directory.

$ curl -O http://tetsuakibaba.jp/tmp/opencv2.framework.zip $ unzip opencv2.framework.zip Or you may build your own opencv.framework from opencv source. ( http://tetsuakibaba.jp/ws/doku.php?id=opencv_dnn:opencv2.framework )

Getting Started with Examples/single_image.

1. Download models

$ sh getModels.sh

2. Update single_image with the projectGenerator.

single_image screenshot

3. Run



Compatibility

Licence

MIT

Author

TetsuakiBaba

Reference

1. https://ws.tetsuakibaba.jp/doku.php?id=opencv_dnn:colorization 2. http://richzhang.github.io/colorization 3. https://github.com/richzhang/colorization

Get this addon

HTTPS
SSH