Webcam Tracker
V1.0
Using openCV and an Arduino Uno
|
Opens the webcam and captures its feed if available. More...
#include <Capture.h>
Public Member Functions | |
Capture () | |
Default constructor. | |
Capture (int deviceID, int apiID) | |
Constructor. More... | |
int | getFeed (cv::Mat &src) |
gets the webcam feed More... | |
Private Attributes | |
cv::VideoCapture | cap |
Object holding the capture device. | |
int | deviceId |
Device identification number. | |
int | apiId |
Device capture API identification number. | |
cv::Mat | src |
Object holding the capture image(source) | |
bool | deviceOpened |
Device opened flag. | |
Opens the webcam and captures its feed if available.
Capture::Capture | ( | int | deviceID, |
int | apiID | ||
) |
Constructor.
deviceID | number of the device |
apiID | device capture API number |
int Capture::getFeed | ( | cv::Mat & | src | ) |
gets the webcam feed
src | Pointer to a source OpenCV matrix |