|
void | add (const FaceTagsIface &face, bool trainFace=true) |
| Adds a new entry to the database.
|
|
FaceTagsIface | add (qlonglong imageid, int tagId, const TagRegion ®ion, bool trainFace=true) |
|
FaceTagsIface | addManually (const FaceTagsIface &face) |
|
FaceTagsIface | changeRegion (const FaceTagsIface &face, const TagRegion &newRegion) |
| Changes the region of the given entry.
|
|
FaceTagsIface | changeSuggestedName (const FaceTagsIface &previousEntry, int unconfirmedNameTagId) |
| Switches an unknownPersonEntry or unconfirmedEntry to an unconfirmedEntry (with a different suggested name).
|
|
FaceTagsIface | changeTag (const FaceTagsIface &face, int newTagId) |
| Changes the tag of the given entry.
|
|
QList< FaceTagsIface > | confirmedFaceTagsIfaces (qlonglong imageid) const |
|
FaceTagsIface | confirmName (const FaceTagsIface &face, int tagId=-1, const TagRegion &confirmedRegion=TagRegion()) |
| Assign the name tag for given face entry.
|
|
QList< FaceTagsIface > | databaseFaces (qlonglong imageid) const |
| Reads the FaceTagsIfaces for the given image id from the database.
|
|
QList< FaceTagsIface > | databaseFaces (qlonglong imageId, FaceTagsIface::TypeFlags flags) const |
|
QList< FaceTagsIface > | databaseFacesForTraining (qlonglong imageid) const |
|
int | faceCountForPersonInImage (qlonglong imageid, int tagId) const |
| Returns the number of faces a particular person has in the specified image.
|
|
QList< ItemTagPair > | faceItemTagPairs (qlonglong imageid, FaceTagsIface::TypeFlags flags) const |
|
QMap< QString, QString > | getSuggestedNames (qlonglong id) const |
| Returns a Map of Tag Regions (in XML format) to Suggested Name (from Face Recognition) for the given image.
|
|
QList< QRect > | getTagRects (qlonglong imageid) const |
| Returns a list of all tag rectangles for the image.
|
|
QList< FaceTagsIface > | ignoredFaceTagsIfaces (qlonglong imageid) const |
|
int | numberOfFaces (qlonglong imageid) const |
| Returns the number of faces present in an image.
|
|
void | removeAllFaces (qlonglong imageid) |
| Unassigns all face tags from the image and sets it's scanned property to false.
|
|
void | removeFace (const FaceTagsIface &face, bool touchTags=true) |
| Remove the given face.
|
|
void | removeFace (qlonglong imageid, const QRect &rect) |
| Remove a face or the face for a certain rect from an image.
|
|
void | removeFaces (const QList< FaceTagsIface > &faces) |
|
bool | rotateFaces (qlonglong imageId, const QSize &size, int oldOrientation, int newOrientation) |
| Rotate face tags.
|
|
QList< FaceTagsIface > | unconfirmedFaceTagsIfaces (qlonglong imageid) const |
| Returns list of Unconfirmed and Unknown faces in the Image.
|
|
QList< FaceTagsIface > | unconfirmedNameFaceTagsIfaces (qlonglong imageid) const |
| Returns a list of UnconfirmedFaces in the Image.
|
|
Returns the face with the new Tag.
Since a new Tag is going to be assigned to the Face, it's important to remove the association between the face and the old tagId.
If the face is being ignored and it was an unconfirmed or unknown face don't remove a possible tag. See bug 449142.
We store metadata of FaceTags, if it's a confirmed person.
QMap< QString, QString > Digikam::FaceTagsEditor::getSuggestedNames |
( |
qlonglong |
id | ) |
const |
This function makes read operations to the database, and hence can be inefficient when called repeatedly. A cached version is provided in ItemInfo, and should be preferred for intensive operations such as sorting, categorizing etc.
For Unconfirmed Results, the value is stored as a tuple of (SuggestedId, Property, Region). Look at the digikam.db file for more details.