Skip to content

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

License

Notifications You must be signed in to change notification settings

TetsuakiBaba/ofxOpenCvDnnColorization

Repository files navigation

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

  • only macOS ( tested on Mojave)
  • of version: 0.10.1

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published