Signapse
Camera.h
Go to the documentation of this file.
1#include <opencv2/core.hpp>
2#include <opencv2/videoio.hpp>
3
4#include <iostream>
5#include <stdlib.h>
6#include <thread>
7
8#include "PipelineLink.h"
9#include "CameraSettings.h"
10
11
15class Camera: public PipelineLink{
16public:
17 Camera();
18 Camera(CameraSettings settings);
19 bool getOn();
20 void setOn(bool state);
21 void Start();
22 void Stop();
23
24private:
25 void postFrame();
26 void threadLoop();
27 cv::VideoCapture videoCapture;
28 CameraSettings cameraSettings;
30 std::thread cameraThread;
32
36 bool isOn = false;
37};
Definition: Camera.h:15
Camera()
Definition: Camera.cpp:6
bool getOn()
Definition: Camera.cpp:71
void Start()
Definition: Camera.cpp:53
void Stop()
Definition: Camera.cpp:61
void setOn(bool state)
Definition: Camera.cpp:20