forked from spmallick/learnopencv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
26 lines (18 loc) · 743 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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