Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

arduino and opencv visual studio

I have an opencv code running on Ms Visual Studio 2013, the code is on colour detection (eg red colour). SO once red colour is detected on a camera connected, the code will output to a txt file using the iostream library like this


fstream myfile;"C:\\Users\\Student - ID\\Downloads\\SPACe Mission         IIIA\\CVbook\\CV colour Communication\\CV colour Communication\\XX.txt");
myfile << "1";

And from here, i will send out the number 1 to show red colour is detected. or if it is not detected, it will send out 0.

And here, my arduino is connected to an Xbee, I wish there is something that can read the txt file and load the number to the arduino. Is it possible?

My ultimate goal is to get a digital signal from Visual Studio that can be understood by arduino and transmit out via Xbee

Or if you have any other better ways, do you mind sharing with me? Thank you very much