ya imprime bien + se puede seleccionar cada foto por separado y
[photoboothMX.git] / camara.h
blob3df0aef2b9ec13a25eac24040400c8d3bea2a715
1 #ifndef CAMARA_H
2 #define CAMARA_H
4 #include <QWidget>
5 #include <opencv/cv.h>
6 #include <opencv/highgui.h>
8 using namespace cv;
10 class QLabel;
11 class QImage;
12 class QPixmap;
14 class camara : public QWidget
16 Q_OBJECT
17 public:
18 explicit camara(QWidget *parent = 0);
19 QPixmap getpix();
21 private:
22 QLabel* camlabe;
23 QPixmap mipix;
24 VideoCapture cap;
25 int errorid;
26 Mat fram;
28 signals:
29 void error(const int&);
31 public slots:
32 void setima(const QImage&);
33 void setpix(const QPixmap&);
34 void guardImagen(const QString&);
35 void newQframe();
36 void relacam();
37 void opencam();
38 int geterror();
41 #endif // CAMARA_H