remove debug code fix time conversion issue
This commit is contained in:
parent
dadce69944
commit
2bed70b971
@ -192,17 +192,12 @@ bool DualcamWrapper::grabFrame(MyImage &img, int camindex) {
|
||||
|
||||
|
||||
void DualcamWrapper::setROI() {
|
||||
std::cerr << "Setting ROI" << std::endl;
|
||||
for (int camindex = 0; camindex < 2; camindex++){
|
||||
std::cerr << "\t" << camindex << std::endl;
|
||||
qDebug() << "Setting ROI: w" << layout.rois[camindex].width << " h: "<< layout.rois[camindex].height << " x " << layout.rois[camindex].x << " y " << layout.rois[camindex].y << std::endl;
|
||||
GenApi::INodeMap &nodemap = getNodemap(camindex);
|
||||
qDebug() << "Setting width" << layout.rois[camindex].width;
|
||||
Pylon::CIntegerParameter(nodemap, "Width").SetValue(layout.rois[camindex].width);
|
||||
qDebug() << "Setting height" << layout.rois[0].height;
|
||||
Pylon::CIntegerParameter(nodemap, "Height").SetValue(layout.rois[camindex].height);
|
||||
qDebug() << "Setting xoffset" << layout.rois[camindex].x;
|
||||
Pylon::CIntegerParameter(nodemap, "OffsetX").SetValue(layout.rois[camindex].x);
|
||||
qDebug() << "Setting yoffset" << layout.rois[camindex].y;
|
||||
Pylon::CIntegerParameter(nodemap, "OffsetY").SetValue(layout.rois[camindex].y);
|
||||
}
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ bool MyImage::setFrame( Pylon::CPylonImage &img) {
|
||||
img_width = img.GetWidth();
|
||||
img_height = img.GetHeight();
|
||||
memcpy(&buffer, img.GetBuffer(), img.GetImageSize());
|
||||
auto t = std::chrono::system_clock::now();
|
||||
img_timestamp = std::chrono::system_clock::to_time_t(t);
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
@ -1,9 +1,7 @@
|
||||
#include "writer.h"
|
||||
#include <chrono>
|
||||
#include <fstream>
|
||||
|
||||
#include <pylon/VideoWriter.h>
|
||||
using namespace std::chrono;
|
||||
|
||||
void Writer::setVideoSpecs(VideoSpecs specs) {
|
||||
videoSpecs = specs;
|
||||
|
Loading…
Reference in New Issue
Block a user