LARS
LARS (Light Augmented Reality System) is an open-source framework for light-based interaction and real-time tracking in multi-robot experiments. Inspired by ARK, LARS extends the augmented reality paradigm to robotic collectives by projecting dynamic visual cues and environments onto the arena, enabling new experimental possibilities for collective robotics research, education, and outreach. LARS features integrated tracking, light projection, and modular experiment control with a user-friendly Qt GUI.
Loading...
Searching...
No Matches
savevidthread.h
1#ifndef SAVEVIDTHREAD_H
2#define SAVEVIDTHREAD_H
3#include <QtCore>
4#include <QImage>
5
6
7#include <opencv2/opencv.hpp>
8#include <opencv2/highgui.hpp>
9
10
11class saveVidThread : public QThread
12{
13 Q_OBJECT
14public:
15 saveVidThread(cv::String fileName, int codec, int FPS, cv::Size size, bool isColor);
16
17private:
18 cv::VideoWriter oVideoWriter;
19 cv::Mat temp;
20
21public slots:
22 void run(cv::Mat frame);
23 void run(QImage frame);
24 void release();
25 void saveFrame(cv::Mat frame);
26};
27
28#endif // SAVEVIDTHREAD_H
void release()
Releases the video writer and any associated resources.
Definition savevidthread.cpp:48
void saveFrame(cv::Mat frame)
Saves a single video frame (cv::Mat) to the output file.
Definition savevidthread.cpp:57
saveVidThread(cv::String fileName, int codec, int FPS, cv::Size size, bool isColor)
Constructs the saveVidThread object and initializes the video writer.
Definition savevidthread.cpp:18
void run(cv::Mat frame)
Writes a video frame (cv::Mat) to the output file.
Definition savevidthread.cpp:27