digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::FacePipelineFaceTagsIface Class Reference
+ Inheritance diagram for Digikam::FacePipelineFaceTagsIface:

Public Types

enum  Role {
  NoRole = 0 , GivenAsArgument = 1 << 0 , ReadFromDatabase = 1 << 1 , DetectedFromImage = 1 << 2 ,
  ForRecognition = 1 << 10 , ForConfirmation = 1 << 11 , ForTraining = 1 << 12 , ForEditing = 1 << 13 ,
  Confirmed = 1 << 20 , Trained = 1 << 21 , Edited = 1 << 22
}
 
typedef QFlags< RoleRoles
 
- Public Types inherited from Digikam::FaceTagsIface
enum  Type {
  InvalidFace = 0 , UnknownName = 1 << 0 , UnconfirmedName = 1 << 1 , IgnoredName = 1 << 2 ,
  ConfirmedName = 1 << 3 , FaceForTraining = 1 << 4 , UnconfirmedTypes = UnknownName | UnconfirmedName , NormalFaces = UnknownName | UnconfirmedName | IgnoredName | ConfirmedName ,
  AllTypes = UnknownName | UnconfirmedName | IgnoredName | ConfirmedName | FaceForTraining , TypeFirst = UnknownName , TypeLast = FaceForTraining
}
 
typedef QFlags< Type > TypeFlags
 

Public Member Functions

 FacePipelineFaceTagsIface (const FaceTagsIface &face)
 
FacePipelineFaceTagsIfaceoperator= (const FacePipelineFaceTagsIface &other)
 
- Public Member Functions inherited from Digikam::FaceTagsIface
 FaceTagsIface (const FaceTagsIface &other)
 
 FaceTagsIface (const QString &attribute, qlonglong imageId, int tagId, const TagRegion &region)
 
 FaceTagsIface (Type type, qlonglong imageId, int tagId, const TagRegion &region)
 
QString getAutodetectedPersonString () const
 Returns the string tagId + ',' + unconfirmedFace + ',' + regionXml.
 
const QString hash () const
 Generate a hash based on the imageId, tagId, and rect to uniquely identify this entry in the face training DB.
 
qlonglong imageId () const
 
bool isConfirmedName () const
 
bool isForTraining () const
 
bool isIgnoredName () const
 
bool isInvalidFace () const
 
bool isNull () const
 
bool isUnconfirmedName () const
 
bool isUnconfirmedType () const
 
bool isUnknownName () const
 
FaceTagsIfaceoperator= (const FaceTagsIface &other)
 
bool operator== (const FaceTagsIface &other) const
 
TagRegion region () const
 
void removeFaceTraining () const
 Remove the face from face training based on the current imageId, tagId, and rect hash.
 
void setRegion (const TagRegion &region)
 
void setTagId (int tagId)
 
void setType (Type type)
 
int tagId () const
 
QVariant toVariant () const
 
Type type () const
 

Public Attributes

TagRegion assignedRegion
 
int assignedTagId = 0
 
Roles roles = NoRole
 

Additional Inherited Members

- Static Public Member Functions inherited from Digikam::FaceTagsIface
static QString attributeForType (Type type)
 Return the corresponding image tag property for the given type.
 
static QStringList attributesForFlags (TypeFlags flags)
 Returns a list of all image tag properties for which flags are set.
 
static FaceTagsIface fromListing (qlonglong imageid, const QList< QVariant > &values)
 Create a FaceTagsIface from the extraValues returned from ItemLister.
 
static FaceTagsIface fromVariant (const QVariant &var)
 Writes the contents of this face - in a compact way - in the QVariant.
 
static Type typeForAttribute (const QString &attribute, int tagId=0)
 Return the Type for the given attribute.
 
static Type typeForId (int tagId)
 Returns the Face Type corresponding to the given TagId.
 
- Protected Attributes inherited from Digikam::FaceTagsIface
qlonglong m_imageId = 0
 
TagRegion m_region
 
int m_tagId = 0
 
Type m_type = InvalidFace
 

Member Enumeration Documentation

◆ Role

Enumerator
GivenAsArgument 

Source.

ForRecognition 

Task.

Confirmed 

Executed action (task is cleared).