remove debug stuff
This commit is contained in:
parent
97ca5aba51
commit
cb9867eec0
@ -1,8 +1,6 @@
|
||||
#include "grabber.h"
|
||||
#include <iostream>
|
||||
#include <pylon/PylonIncludes.h>
|
||||
#include <chrono>
|
||||
using namespace std::chrono;
|
||||
|
||||
void Grabber::run() {
|
||||
stop_request = false;
|
||||
@ -11,19 +9,14 @@ void Grabber::run() {
|
||||
camera->frameRate(static_cast<uint>(framerate));
|
||||
camera->exposureTime(exposure);
|
||||
camera->gain(gain);
|
||||
Pylon::CGrabResultPtr frame;
|
||||
Pylon::CInstantCamera *cam = camera->getCamera();
|
||||
Pylon::CGrabResultPtr frame;
|
||||
cam->StartGrabbing();
|
||||
while (camera->isOpen() && !stop_request) {
|
||||
MyImage *img = new MyImage();
|
||||
auto start = high_resolution_clock::now();
|
||||
cam->RetrieveResult( 5000, frame, Pylon::TimeoutHandling_ThrowException);
|
||||
auto stop1 = high_resolution_clock::now();
|
||||
img->setFrame(frame);
|
||||
auto stop2 = high_resolution_clock::now();
|
||||
buffer->push(img);
|
||||
auto duration1 = duration_cast<microseconds>(stop1 - start);
|
||||
auto duration2 = duration_cast<microseconds>(stop2 - stop1);
|
||||
count += 1;
|
||||
}
|
||||
cam->StopGrabbing();
|
||||
|
Loading…
Reference in New Issue
Block a user