Ask Your Question

baronobeefdip's profile - activity

2015-10-21 16:25:26 -0600 asked a question execute program when detected color is on specific side of frame

I am wanting to write a program which detects an object based on it's color (let's say red, for instance), and whenever it finds the object on a certain side of the screen, I want the opencv code to execute another program. Like if the object was within a range on the right hand side of the frame, I want the OpenCV program to run another program (perhaps through the C++ system() function). Same thing would apply for the middle and right hand side of the frame. I have divided the frame into three pieces, left, right, and center. And I want the OpenCV code to execute a program depending on where in the frame the object is found.