Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

c# process cvtcolor error

I tried to run an Opencv program using process from c#, for some reason it is giving me a cvtcolor error even though it runs correctly in c++. Can someone tell me how to fix this error?

run_cmd1(@"C:/Project5/Debug/Project5.exe", "");

private void run_cmd1(string cmd, string args)
        {
            Process process = new Process();
            process.StartInfo.FileName = cmd;
            process.StartInfo.Arguments = args; // Put your arguments here
            process.Start();
        }

image description