Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
2e1a0f87ec
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
39 lines (36 sloc) 987 Bytes
#ifndef SPINNAKERCAPTURE_H
#define SPINNAKERCAPTURE_H
#include "Spinnaker.h"
#include "SpinGenApi/SpinnakerGenApi.h"
#include <opencv2/core/core.hpp>
#include <QDebug>
#include <QObject>
using namespace Spinnaker;
using namespace Spinnaker::GenApi;
using namespace Spinnaker::GenICam;
using namespace std;
class SpinnakerCapture : public QObject
{
Q_OBJECT
public:
SpinnakerCapture(QObject *parent = 0);
int printDeviceInfo();
bool isInitialized = false;
unsigned int width = 0;
unsigned int height = 0;
float exposureTime = 0;
int64_t pixelFormat; //PixelFormat_BGR8
~SpinnakerCapture();
private:
CameraPtr pCam;
INodeMap* nodeMapTLDevice;
INodeMap* nodeMap;
SystemPtr system;
CameraList camList;
signals:
void sendFrame(cv::Mat);
public slots:
int configureExposure(double exposureTimeToSet);
int acquireImages(unsigned int nImagesToCapture);
};
#endif // SPINNAKERCAPTURE_H