[grabber] don't set framerate with each frame
This commit is contained in:
parent
5edc6b2f49
commit
e28c0b159b
@ -6,11 +6,11 @@ void Grabber::run() {
|
|||||||
stop_request = false;
|
stop_request = false;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
if (camera->isOpen()) {
|
if (camera->isOpen()) {
|
||||||
|
camera->frameRate(static_cast<uint>(framerate));
|
||||||
Pylon::CGrabResultPtr frame;
|
Pylon::CGrabResultPtr frame;
|
||||||
Pylon::CInstantCamera *cam = camera->getCamera();
|
Pylon::CInstantCamera *cam = camera->getCamera();
|
||||||
cam->StartGrabbing();
|
cam->StartGrabbing();
|
||||||
while (!stop_request) {
|
while (camera->isOpen() && !stop_request) {
|
||||||
camera->frameRate(static_cast<uint>(framerate));
|
|
||||||
MyImage img;
|
MyImage img;
|
||||||
cam->RetrieveResult( 5000, frame, Pylon::TimeoutHandling_ThrowException);
|
cam->RetrieveResult( 5000, frame, Pylon::TimeoutHandling_ThrowException);
|
||||||
img.setFrame(frame);
|
img.setFrame(frame);
|
||||||
|
Loading…
Reference in New Issue
Block a user