i'm working on face detection robot project.i'm using opencv software detect faces. when face detected want x-y coordinates , send them arduino board.
the arduino has 2 dc motors connected. first dc motor spin base (the base of robot's head) according y-coordinates (y-axis).
the second dc motor handle x-coordinates on x-axis (i want make robot's eyes go , down).
i work code on eclipse (kepler), os ubuntu 12.04 , have arduino uno. source code written in c++ , opencv. arduino connected pc through usb port.
my question how can take x-y coordinates opencv source code in order transfer them arduino?
and how can receive , handle coordinates in arduino?
you need way interface usb serial ports c++ code. quick google search leads me c++ serial library ubuntu: libserial-dev.
on arduino side, want @ arduino serial interface receive data you're sending.
to follow up, tutorial on basic usage. start simple "hello world" , try echo , forth between c++ code , arduino. then, it's design data transfer protocol.
Comments
Post a Comment