14#include "../../interfaces/AutonomyThread.hpp"
15#include "../../interfaces/BasicCamera.hpp"
18#include <opencv2/opencv.hpp>
39 BasicCam(
const std::string szCameraPath,
40 const int nPropResolutionX,
41 const int nPropResolutionY,
42 const int nPropFramesPerSecond,
43 const PIXEL_FORMATS ePropPixelFormat,
44 const double dPropHorizontalFOV,
45 const double dPropVerticalFOV,
46 const bool bEnableRecordingFlag,
47 const int nNumFrameRetrievalThreads = 10);
49 const int nPropResolutionX,
50 const int nPropResolutionY,
51 const int nPropFramesPerSecond,
52 const PIXEL_FORMATS ePropPixelFormat,
53 const double dPropHorizontalFOV,
54 const double dPropVerticalFOV,
55 const bool bEnableRecordingFlag,
56 const int nNumFrameRetrievalThreads = 10);
This class implements and interfaces with the most common USB cameras and features....
Definition BasicCam.h:33
void PooledLinearCode() override
This method holds the code that is ran in the thread pool started by the ThreadedLinearCode() method....
Definition BasicCam.cpp:282
~BasicCam()
Destroy the Basic Cam:: Basic Cam object.
Definition BasicCam.cpp:143
std::future< bool > RequestFrameCopy(cv::Mat &cvFrame) override
Puts a frame pointer into a queue so a copy of a frame from the camera can be written to it....
Definition BasicCam.cpp:319
bool GetCameraIsOpen() override
Accessor for the camera open status.
Definition BasicCam.cpp:344
void ThreadedContinuousCode() override
The code inside this private method runs in a separate thread, but still has access to this*....
Definition BasicCam.cpp:177
std::string GetCameraLocation() const override
Accessor for the cameras path or video index.
Definition BasicCam.cpp:358
This class serves as a middle inheritor between the Camera interface and the BasicCam class....
Definition BasicCamera.hpp:28