Webcam Tracker  V1.0
Using openCV and an Arduino Uno
Capture.h
Go to the documentation of this file.
1 
9 #pragma once
10 #include "PipeLineAction.h"
14 class Capture {
15 private:
16 
17  cv::VideoCapture cap;
18  int deviceId;
19  int apiId;
20  cv::Mat src;
21  bool deviceOpened;
22 
23 public:
25  Capture();
26 
30  Capture(int deviceID, int apiID);
31 
35  int getFeed(cv::Mat& src);
36 };
header file of the PipeLineAction base-class
Opens the webcam and captures its feed if available.
Definition: Capture.h:14
int getFeed(cv::Mat &src)
gets the webcam feed
Definition: Capture.cpp:37
int apiId
Device capture API identification number.
Definition: Capture.h:19
cv::Mat src
Object holding the capture image(source)
Definition: Capture.h:20
int deviceId
Device identification number.
Definition: Capture.h:18
Capture()
Default constructor.
Definition: Capture.cpp:14
bool deviceOpened
Device opened flag.
Definition: Capture.h:21
cv::VideoCapture cap
Object holding the capture device.
Definition: Capture.h:17