ultimo comit con mas efectos, conecciones y desconecciones...
[photoboothMX.git] / camara.h
blobde6609b750213b90c61fae1d37272ff1fafe66f9
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;
27 int fondid;
29 signals:
30 void error(const int&);
32 public slots:
33 void setima(const QImage&);
34 void setpix(const QPixmap&);
35 void guardImagen(const QString&);
36 void newQframe();
37 void newQBWframe();
38 void newQINframe();
39 void newQEXTframe();
40 void newQEP1frame();
41 void relacam();
42 void opencam();
43 int geterror();
44 void setFondidd(const int&);
47 #endif // CAMARA_H