summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/camera.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-06 10:20:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-06 10:47:47 +0200
commitfaab09446c5c26b96e59218abc34b1dc24727418 (patch)
tree9fc386f72ed736b3994ac1809f6a993d1a91ea2c /ftnoir_tracker_pt/camera.h
parent2e7407a094c74b629cbe8348e9007c6373e476fe (diff)
pt: initial camera dialog
Diffstat (limited to 'ftnoir_tracker_pt/camera.h')
-rw-r--r--ftnoir_tracker_pt/camera.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_tracker_pt/camera.h b/ftnoir_tracker_pt/camera.h
index bffd19ee..63614ded 100644
--- a/ftnoir_tracker_pt/camera.h
+++ b/ftnoir_tracker_pt/camera.h
@@ -89,12 +89,13 @@ public:
void start() override;
void stop() override;
+ operator cv::VideoCapture&() { return *cap; }
+
protected:
bool _get_frame(cv::Mat* frame) override;
void _set_fps() override;
void _set_res() override;
void _set_device_index() override;
-
private:
cv::VideoCapture* cap;
};