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