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
savevid_thread.h
1#ifndef SAVEVID_THREAD_H
2#define SAVEVID_THREAD_H
3#include <QtCore>
4#include <opencv2/opencv.hpp>
5#include <opencv2/highgui.hpp>
6#include <QObject>
7
8class SaveVid_Thread : public QThread
9{
10 Q_OBJECT
11public:
12 SaveVid_Thread(cv::String fileName, int codec, int FPS, cv::Size size, bool isColor);
13
14private:
15 cv::VideoWriter oVideoWriter;
16
17public slots:
18 void run(cv::Mat frame);
19 void saveFrame(cv::Mat frame);
20 void setVideoWriter(cv::String fileName, int codec, int FPS, cv::Size size, bool isColor);
21};
22
23#endif // SAVEVID_THREAD_H
void saveFrame(cv::Mat frame)
Saves a single video frame to the output file.
Definition savevid_thread.cpp:38
void run(cv::Mat frame)
Runs the thread function: displays and writes a video frame.
Definition savevid_thread.cpp:28
void setVideoWriter(cv::String fileName, int codec, int FPS, cv::Size size, bool isColor)
Configures the video writer with new parameters.
Definition savevid_thread.cpp:51