3.Usage - PaleCosmos/Simple_Video_Colorization GitHub Wiki
If you only have a finger and a video, you can use SVC.
- In the SVC internal directory, enter the following in the console window.
python main.py [Video Path]
- In the window that opens, press the i key to select the starting point.
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/1.png?raw=true)
- Set the box area.
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/2.png?raw=true)
- Select an object tracking algorithm.
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/3.png?raw=true)
- Finally, select a color and click Apply.
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/4.png?raw=true)
If all modules are installed, you can use SVC by using the command line.
And because it is written in Python, it is very extensible.
- Running on .net core
Process.Start("python", $"{InputPath} "{OutputPath});
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/ex.png?raw=true)
- Running on node.js
const { exec } = require("child_process");
let command = "main.py ";
let argument = "[Input Path]";
exec(`python ${command} ${argument}`, (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
return;
}
console.log(`stdout: ${stdout}`);
});
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/js.png?raw=true)
- Input
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/red.gif?raw=true)
- Output [Pink]
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/pink.gif?raw=true)
- Output [Blue]
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/blue.gif?raw=true)
- Output [Green]
![](https://github.com/PaleCosmos/Simple_Video_Colorization/raw/master/image/green.gif?raw=true)