]>
git.defcon.no Git - qopencamwidget/blob - qopencamwidget.h
2 This file is one part of two, that together make
3 QOpenCamWidget, a Qt 4 widget that displays video input
4 from a webcam, along with an optional snapshot button.
6 Copyright (C) 2009 Jon Langseth
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation in its version 2
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef QOPENCVWIDGET_H
24 #define QOPENCVWIDGET_H
26 #include <opencv/cv.h>
27 #include <opencv/highgui.h>
40 // Defaults, standard elements ;)
41 QOpenCamWidget(QWidget
*parent
= 0);
42 ~QOpenCamWidget(void);
44 // Overides, reimplementation of abstract
45 void paintEvent ( QPaintEvent
* event
);
47 // Public methods specific to this class
48 bool grabCapture(int source
);
49 void startCapture(void);
50 QImage
* Ipl2QImage(IplImage
*img
);
56 void imageReady(QImage snapshot
);