mirror of
https://github.com/RustyRaptor/learnopencv.git
synced 2026-12-05 14:25:15 -07:00
27 lines
743 B
Plaintext
27 lines
743 B
Plaintext
|
|
Run the getModels.sh file from command line to download the needed model files
|
|
|
|
sudo chmod a+x getModels.sh
|
|
./getModels.sh
|
|
|
|
Python:
|
|
Commandline usage to colorize
|
|
a single image:
|
|
python3 colorizeImage.py --input greyscaleImage.png
|
|
a video file:
|
|
python3 colorizeVideo.py --input greyscaleVideo.mp4
|
|
|
|
|
|
C++:
|
|
|
|
Compilation examples:
|
|
g++ -ggdb `pkg-config --cflags --libs /usr/local/Cellar/opencv3/3.4.2/lib/pkgconfig/opencv.pc` colorizeImage.cpp -o colorizeImage.out
|
|
g++ -ggdb `pkg-config --cflags --libs /usr/local/Cellar/opencv3/3.4.2/lib/pkgconfig/opencv.pc` colorizeVideo.cpp -o colorizeVideo.out
|
|
|
|
Commandline usage to colorize
|
|
a single image:
|
|
./colorizeImage.out greyscaleImage.png
|
|
a video file:
|
|
./colorizeVideo.out greyscaleVideo.mp4
|
|
|