class
#include <FAST/Streamers/CameraStreamer.hpp>
CameraStreamer Stream images from a (web)camera.
Contents
This streamer uses Qt 5 to connect a (web)camera and creates a stream of FAST images from it.
Default streaming mode is StreamingMode::
Output ports
- 0: Image
Base classes
Public functions
- auto create(bool grayscale, uchar cameraIndex) -> std::shared_ptr<CameraStreamer>
- Create instance.
- void setFinished(bool finished)
- void addNewImageFrame(const uchar* data, int width, int height)
- auto getGrayscale() const -> bool
- void setGrayscale(bool grayscale)
- void loadAttributes() override
- void setCamera(uchar index)
Protected functions
- void execute() override
- void generateStream() override
Protected variables
- bool mGrayscale
- bool m_finished
- int m_framesAdded
- std::chrono::high_resolution_clock::time_point m_startTime
- QThread* thread
- CameraWorker* worker
- uint m_cameraIndex
Function documentation
void fast:: CameraStreamer:: generateStream() override protected
The function producing the data stream