repo.or.cz
/
photoboothMX.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ya imprime bien + se puede seleccionar cada foto por separado y
[photoboothMX.git]
/
camara.h
blob
3df0aef2b9ec13a25eac24040400c8d3bea2a715
1
#ifndef CAMARA_H
2
#define CAMARA_H
3
4
#include <QWidget>
5
#include <opencv/cv.h>
6
#include <opencv/highgui.h>
7
8
using namespace
cv
;
9
10
class
QLabel
;
11
class
QImage
;
12
class
QPixmap
;
13
14
class
camara
:
public
QWidget
15
{
16
Q_OBJECT
17
public
:
18
explicit
camara
(
QWidget
*
parent
=
0
);
19
QPixmap
getpix
();
20
21
private
:
22
QLabel
*
camlabe
;
23
QPixmap mipix
;
24
VideoCapture cap
;
25
int
errorid
;
26
Mat fram
;
27
28
signals
:
29
void
error
(
const int
&);
30
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
();
39
};
40
41
#endif
// CAMARA_H