3.Usage - PaleCosmos/Simple_Video_Colorization GitHub Wiki

Simple Usage

If you only have a finger and a video, you can use SVC.

  1. In the SVC internal directory, enter the following in the console window.
python main.py [Video Path]

  1. In the window that opens, press the i key to select the starting point.



  1. Set the box area.



  1. Select an object tracking algorithm.



  1. Finally, select a color and click Apply.



API

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});



  • 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}`);
});
The child_process library must be installed.



Result

  • Input



  • Output [Pink]



  • Output [Blue]



  • Output [Green]



⚠️ **GitHub.com Fallback** ⚠️