QFaceDataBase Class Reference
#include
<imagerecognition/qface.h>
Link against: qfacelib.lib
Public Member Functions |
---|
| QFaceDataBase(QSqlDatabase) |
| ~QFaceDataBase() |
IMPORT_C void | CalRectOfInterest(int, const QString &) |
IMPORT_C void | ChangedClusterInfo(QList< int > *, QList< QString > *, QList< int > *, QList< QString > *) |
IMPORT_C bool | addFaceforClustering(QString, QFaceInfo *) |
IMPORT_C QList< QFaceInfo > | clusterId(QString) |
IMPORT_C bool | deleteCluster(int) |
IMPORT_C bool | deleteFaceEntry(QString, int) |
IMPORT_C bool | deleteFileEntry(QString) |
IMPORT_C QStringList | fileNames(const int) |
IMPORT_C QSqlDatabase | getDataBase() |
IMPORT_C QList< QRect > | getRectOfInterest() |
IMPORT_C QFaceDatabaseError | lasterror() |
IMPORT_C int | mergeCluster(int, int) |
IMPORT_C bool | nearestMatches(int, QList< int > &) |
IMPORT_C void | recognizeFace(QImage &, QList< QFaceInfo > &) |
IMPORT_C void | removeNameForCluster(int) |
IMPORT_C bool | setNameForCluster(int, QString) |
IMPORT_C bool | setNameForCluster(QString, int, QRect, QString, int *) |
IMPORT_C void | setRectOfInterest(const QList< QRect > &) |
IMPORT_C bool | setRepresentativeFaceThumbnail(int, QString) |
IMPORT_C QStringList | thumbnailPaths(const int, const QString &) |
Detailed Description
QFaceDataBase stores the supplied db from top level and helps to add the face information into database
Member Enumeration Documentation
Enum QFaceDatabaseError
Constructor & Destructor Documentation
QFaceDataBase ( QSqlDatabase )
IMPORT_C | QFaceDataBase | ( | QSqlDatabase | db | ) | |
Parameters |
---|
db | input data base |
~QFaceDataBase ( )
Member Function Documentation
CalRectOfInterest ( int, const QString & )
IMPORT_C void | CalRectOfInterest | ( | int | clusterId, |
| const QString & | sourceID |
| ) | |
ChangedClusterInfo ( QList< int > *, QList< QString > *, QList< int > *, QList< QString > * )
IMPORT_C void | ChangedClusterInfo | ( | QList< int > * | changedClusterIds, |
| QList< QString > * | changedNames, |
| QList< int > * | originalClusterIds, |
| QList< QString > * | originalNames |
| ) | |
- Return Value
- returns whether face entry is deleted or not.
addFaceforClustering ( QString, QFaceInfo * )
IMPORT_C bool | addFaceforClustering | ( | QString | filename, |
| QFaceInfo * | faceImage = NULL |
| ) | |
Parameters |
---|
faceImage | add the face image for clustering filename add the filename also in the database |
- Return Value
- returns whether the adding of face for cluster is done or not
clusterId ( QString )
IMPORT_C QList< QFaceInfo > | clusterId | ( | QString | filename | ) | |
Parameters |
---|
filename | input image filename whose faces's cluster id need to be found |
- Return Value
- returns the list of faceinfos of given input file and use clusterId() to get clusterid for each face
deleteCluster ( int )
IMPORT_C bool | deleteCluster | ( | int | clusterid | ) | |
- Return Value
- returns whether the cluster is deleted or not.
deleteFaceEntry ( QString, int )
IMPORT_C bool | deleteFaceEntry | ( | QString | filename, |
| int | clusterid |
| ) | |
- Return Value
- returns whether face entry is deleted or not.
deleteFileEntry ( QString )
IMPORT_C bool | deleteFileEntry | ( | QString | filename | ) | |
- Return Value
- returns whether the file entry is deleted or not.
fileNames ( const int )
IMPORT_C QStringList | fileNames | ( | const int | clusterId | ) | |
getDataBase ( )
IMPORT_C QSqlDatabase | getDataBase | ( | ) | const |
- Return Value
- returns the input supplied database.
getRectOfInterest ( )
IMPORT_C QList< QRect > | getRectOfInterest | ( | ) | |
lasterror ( )
- Return Value
- returns the last QFaceDataBase error.
mergeCluster ( int, int )
IMPORT_C int | mergeCluster | ( | int | clusterid1, |
| int | clusterid2 |
| ) | |
Parameters |
---|
clusterid1 | input clusterid1 clusterid2 input clusterid2 |
- Return Value
- returns whether the merging of two cluster is done or not.
nearestMatches ( int, QList< int > & )
IMPORT_C bool | nearestMatches | ( | int | clusterId, |
| QList< int > & | nearestmatches |
| ) | |
recognizeFace ( QImage &, QList< QFaceInfo > & )
IMPORT_C void | recognizeFace | ( | QImage & | image, |
| QList< QFaceInfo > & | faceCoords |
| ) | |
removeNameForCluster ( int )
IMPORT_C void | removeNameForCluster | ( | int | clusterId | ) | |
setNameForCluster ( int, QString )
IMPORT_C bool | setNameForCluster | ( | int | clusterid, |
| QString | Name |
| ) | |
Parameters |
---|
clusterid | cluster id to which name has to be given Name Name which has to be given to clusterid |
- Return Value
- returns whether the setting of name for cluster is done or not
setNameForCluster ( QString, int, QRect, QString, int * )
IMPORT_C bool | setNameForCluster | ( | QString | filename, |
| int | clusterid, |
| QRect | rect, |
| QString | Name, |
| int * | newclusterid |
| ) | |
Parameters |
---|
filename | filename under which the clusterid is present clusterid cluster id to which name has to be given rect rect of particular person Name Name which has to be given to clusterid newclusterid newclusterid which is changed from clusterid |
- Return Value
- returns whether the setting of name for cluster is done or not
setRectOfInterest ( const QList< QRect > & )
IMPORT_C void | setRectOfInterest | ( | const QList< QRect > & | rects | ) | |
setRepresentativeFaceThumbnail ( int, QString )
IMPORT_C bool | setRepresentativeFaceThumbnail | ( | int | clusterid, |
| QString | filename |
| ) | |
Parameters |
---|
clusterid | - input clusterid filename - input image filename - needed to find the face id. |
- Return Value
- returns whether the setting of representative thumbnail is done or not
thumbnailPaths ( const int, const QString & )
IMPORT_C QStringList | thumbnailPaths | ( | const int | clusterId, |
| const QString & | source =
QString() |
| ) | |