Quote:
Originally Posted by Cinnamon Toast
I've been having the same problem with some vision I've been running with open cv. Is it possible to integrate that command into the camera capture object? If I could do this in the initiation of my code that would be great. If possible how so?
|
Depends on your language, there are multiple ways to run external processes in each language. In python it would be something like:
Code:
import os
...
os.system('v4l2-ctl ... ')
And in C++ it'll probably be something like:
Code:
#include <stdlib.h>
...
system("v4l2-ctl ...");
And in java it'll be something like this:
Code:
Runtime.getRuntime().exec("v4l2-ctl ...");
Obviously, you will want to do error checking, and some languages provide better ways of doing this as well.