#include <imagerecognition/xqfacethumbnailer.h>
Link against: faceplatform.lib
class XQFaceThumbnailer : public QObject, public QObject |
XQFaceThumbnailer is an abstract interface to be implemented by the users of face recognition to generate either face thumbnails or the image to be processed.
Public Member Enumerations | |
---|---|
enum | ThumbnailSizeHint { ScreenSize, LargeSize } |
Public Member Functions | |
---|---|
virtual | ~XQFaceThumbnailer() |
pure virtual void | createFaceThumbnail(const QString &, const QSize &, const QRect &) |
pure virtual void | createThumbnail(const QString &, XQFaceThumbnailer::ThumbnailSizeHint, const QSize &) |
pure virtual void | thumbnailNotUsed(const QStringList &) |
Protected Member Functions | |
---|---|
XQFaceThumbnailer(QObject *) |
Public Signals | |
---|---|
void | faceThumbnailCreated(const QString &, const QString &, const QSize &, const QRect &) |
void | thumbnailCreated(const QImage, const QString &, XQFaceThumbnailer::ThumbnailSizeHint) |
Inherited Attributes | |
---|---|
QObject::d_ptr | |
QObject::objectName | |
QObject::staticQtMetaObject |
Inherited Functions | |
---|---|
QObject::QObject(QObjectPrivate &,QObject *) | |
QObject::blockSignals(bool) | |
QObject::childEvent(QChildEvent *) | |
QObject::children()const | |
QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const | |
QObject::connectNotify(const char *) | |
QObject::customEvent(QEvent *) | |
QObject::deleteLater | |
QObject::destroyed | |
QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &) | |
QObject::disconnect(const QObject *,const char *) | |
QObject::disconnect(const QObject *,const char *,const QObject *,const char *) | |
QObject::disconnect(const char *,const QObject *,const char *) | |
QObject::disconnectNotify(const char *) | |
QObject::dumpObjectInfo() | |
QObject::dumpObjectTree() | |
QObject::dynamicPropertyNames()const | |
QObject::event(QEvent *) | |
QObject::eventFilter(QObject *,QEvent *) | |
QObject::findChild(const QString &)const | |
QObject::findChildren(const QRegExp &)const | |
QObject::findChildren(const QString &)const | |
QObject::inherits(const char *)const | |
QObject::installEventFilter(QObject *) | |
QObject::isWidgetType()const | |
QObject::killTimer(int) | |
QObject::moveToThread(QThread *) | |
QObject::objectName()const | |
QObject::parent()const | |
QObject::property(const char *)const | |
QObject::receivers(const char *)const | |
QObject::registerUserData() | |
QObject::removeEventFilter(QObject *) | |
QObject::sender()const | |
QObject::senderSignalIndex()const | |
QObject::setObjectName(const QString &) | |
QObject::setParent(QObject *) | |
QObject::setProperty(const char *,const QVariant &) | |
QObject::setUserData(uint,QObjectUserData *) | |
QObject::signalsBlocked()const | |
QObject::startTimer(int) | |
QObject::thread()const | |
QObject::timerEvent(QTimerEvent *) | |
QObject::userData(uint)const | |
QObject::~QObject() |
The need for this interface is because most of the API's are designed to accept Source-ID as input instead of file-name. Although, the source-id can very well be the file name, the API's do not assume that. Hence whenever an image data is required by image recognition, it relies on this interface to request and get the same from the application.
An input to the thumbnailer expressing the desired size of the thumbnail expected by the image recognition.
Enumerator | Value | Description |
---|---|---|
ScreenSize | 0 |
In some systems a display-sized thumbnails are stored for quick display of images (since large images take time to decode). The same thumbnails can be reused for image processing instead of attempting to decode the full image |
LargeSize |
In some cases the image recognition might require the full sized image. In such cases LargeSize is requested. |
XQFaceThumbnailer | ( | QObject * | parent = 0 | ) | [protected, inline] |
constructor
~XQFaceThumbnailer | ( | ) | [inline, virtual] |
destructor
void | createFaceThumbnail | ( | const QString & | sourceId, |
const QSize & | sourceSize, | |||
const QRect & | thumbnailRect | |||
) | [pure virtual] |
void | createThumbnail | ( | const QString & | sourceId, |
XQFaceThumbnailer::ThumbnailSizeHint | sizeHint, | |||
const QSize & | preferredSize | |||
) | [pure virtual] |
void | faceThumbnailCreated | ( | const QString & | thumbnailPath, |
const QString & | sourceId, | |||
const QSize & | sourceSize, | |||
const QRect & | thumbnailRect | |||
) | [signal] |
void | thumbnailCreated | ( | const QImage | image, |
const QString & | sourceId, | |||
XQFaceThumbnailer::ThumbnailSizeHint | sizeHint | |||
) | [signal] |