BitmapToolkit Scol plugin
CameraInputWindows.h
Go to the documentation of this file.
1#ifndef __BTK_CAMERAINPUT_WINDOWS_H__
2#define __BTK_CAMERAINPUT_WINDOWS_H__
3
4#include "ICameraInput.h"
5#include <opencv2/opencv.hpp>
6#include <videoInput.h>
7#include <vector>
8
13{
14private:
15 videoInput* mVI;
16 std::vector<unsigned char> mBuffer;
17
18public:
19 CameraInputWindows(int index);
21
22 bool Initialize();
23 void Close();
24 bool IsOpened();
25 cv::Mat UpdateImage();
26
27 int GetWidth();
28 int GetHeight();
29 void SetSize(int width, int height);
30
31 bool TakeSnapshot(std::string path);
32};
33
34#endif
Concrete implementation of ICameraInput using Windows API.
bool TakeSnapshot(std::string path)
void SetSize(int width, int height)
Interface for camera management. Concrete classes are written for Windows, Android and OpenCV native ...