Webcam Tracker
V1.0
Using openCV and an Arduino Uno
|
This group is the main entry point for the openCV processing console application. More...
Files | |
file | Main.cpp |
OpenCV proccesing for object tracking with a webcam and arduino uno. | |
Functions | |
int | scale (float input, float rMax, float tMax) |
Scale funtion. More... | |
int | main () |
Main function. More... | |
Variables | |
cv::Mat | src |
Object holding an OpenCV matrix for the capture source. | |
vector< PipeLineAction * > | actions |
All OpenCV pipeline actions. | |
SerialCom * | sc |
Object preforming the serial communication. | |
GUI * | g |
Object holding the grafic user interface. | |
Capture | webCam |
Object holding the capture device. | |
char | arduinoCommand [100] |
Command to be send to the arduino *&;/. | |
This group is the main entry point for the openCV processing console application.
int scale | ( | float | input, |
float | rMax, | ||
float | tMax | ||
) |
Scale funtion.
Scales the input to a range. Range is defined by rMax and tMax. Where rMax is the maximum of the input range and tMax is the maximum of the target(output) range
input | input to scale |
rMax | maximun of the input range |
tMax | maximum of the target(output) range |
main | ( | ) |
Main function.
sets up a source Matrix, creates the OpenCV pipeline, starts serial Communication with an Arduino Unoand initiates a graphic user interface.Continues until the escape - key is pressed or the console window is closed. In each loop it captures an image of the webcam.Excecutes the pipeline actions.Sends the output of the pipeline to the arduino and shows the appropriat windows on screen.
sets up a source Matrix, creates the OpenCV pipeline, starts serial Communication with an Arduino Uno and initiates a graphic user interface. Continues until the escape-key is pressed or the console window is closed. In each loop it captures an image of the webcam. Excecutes the pipeline actions. Sends the output of the pipeline to the arduino and shows the appropriat windows on screen.