arduino and opencv visual studio [closed]

asked 2015-09-25 01:46:49 -0500

SCBEAR gravatar image

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

o

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

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2015-09-25 02:02:07.959420

Comments

1

unfortunately, your question is not about opencv, but only about how to communicate between a pc and your arduino (probably via serial)

please ask that in a more arduino related forum, or on SO.

berak gravatar imageberak ( 2015-09-25 02:01:51 -0500 )edit