PylonRecorder/pylonwrapper.h
2020-03-11 10:09:13 +01:00

34 lines
551 B
C++

#ifndef PYLONRECORDER_H
#define PYLONRECORDER_H
#include <pylon/PylonIncludes.h>
#include <pylon/BaslerUniversalInstantCamera.h>
struct ImageSettings {
int64_t width = 0;
int64_t height = 0;
};
class PylonWrapper
{
public:
PylonWrapper();
~PylonWrapper();
ImageSettings getImageSettings();
bool isOpen();
void terminate();
bool openCamera(std::string &message);
void closeCamera();
Pylon::CGrabResultPtr grabFrame();
private:
Pylon::CInstantCamera *camera;
bool valid;
};
#endif // PYLONRECORDER_H