change stiching method

add camera temperature readout
This commit is contained in:
2021-07-05 11:27:38 +02:00
parent ea3b870c0a
commit 48a04fdf79
10 changed files with 128 additions and 24 deletions

View File

@ -26,10 +26,12 @@ private:
bool free_ = false;
bool disable_ = false;
double exposrueTime_ = 1.0/60.0;
uint64_t blockCaptureId_ = 0;
LightingSetup lighting_;
std::vector<std::shared_ptr<Camera>> cameras_;
std::vector<Camera::Image> images_;
QTimer ledTimer;
QTimer cameraFailureTimer;
bool lightFor(const LightingSetup& lighting, double time);
@ -42,6 +44,7 @@ signals:
void cameraRemoved(std::shared_ptr<Camera> camera);
void cameraAdded(std::shared_ptr<Camera> camera);
void newImages(std::vector<Camera::Image> images);
void enableCapture(bool enable);
public slots:
@ -51,6 +54,7 @@ public slots:
bool stop();
bool setFree(bool free);
void setLighting(const LightingSetup& lighting) {lighting_ = lighting;}
void reloadCameras();
public:
Cameras(uvosled* led = nullptr);
@ -62,6 +66,7 @@ public:
std::shared_ptr<Camera> getCamera(size_t id);
size_t numCameras(){return cameras_.size();}
void clear();
double getMeanTemp();
void load(QSettings& settings);
void store(QSettings& settings);
void disable(bool disable);