Signapse
src
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
15
class
Camera
:
public
PipelineLink
{
16
public
:
17
Camera
();
18
Camera
(
CameraSettings
settings);
19
bool
getOn
();
20
void
setOn
(
bool
state);
21
void
Start
();
22
void
Stop
();
23
24
private
:
25
void
postFrame();
26
void
threadLoop();
27
cv::VideoCapture videoCapture;
28
CameraSettings
cameraSettings;
30
std::thread cameraThread;
32
36
bool
isOn =
false
;
37
};
CameraSettings.h
PipelineLink.h
Camera
Definition:
Camera.h:15
Camera::Camera
Camera()
Definition:
Camera.cpp:6
Camera::getOn
bool getOn()
Definition:
Camera.cpp:71
Camera::Start
void Start()
Definition:
Camera.cpp:53
Camera::Stop
void Stop()
Definition:
Camera.cpp:61
Camera::setOn
void setOn(bool state)
Definition:
Camera.cpp:20
PipelineLink
Definition:
PipelineLink.h:10
CameraSettings
Definition:
CameraSettings.h:6
Generated by
1.9.3