[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;
|
||||
int count = 0;
|
||||
if (camera->isOpen()) {
|
||||
camera->frameRate(static_cast<uint>(framerate));
|
||||
Pylon::CGrabResultPtr frame;
|
||||
Pylon::CInstantCamera *cam = camera->getCamera();
|
||||
cam->StartGrabbing();
|
||||
while (!stop_request) {
|
||||
camera->frameRate(static_cast<uint>(framerate));
|
||||
while (camera->isOpen() && !stop_request) {
|
||||
MyImage img;
|
||||
cam->RetrieveResult( 5000, frame, Pylon::TimeoutHandling_ThrowException);
|
||||
img.setFrame(frame);
|
||||
|
Loading…
Reference in New Issue
Block a user