25 #ifndef DIGIKAM_FACE_DB_H
26 #define DIGIKAM_FACE_DB_H
36 #include <QDataStream>
37 #include <QStandardPaths>
41 #include "digikam_config.h"
42 #include "digikam_opencv.h"
59 QString
setting(
const QString& keyword)
const;
98 const QString& context)
const;
110 cv::Ptr<cv::ml::TrainData>
trainData()
const;
120 const cv::Mat& faceEmbedding)
const;
136 int maxNbNeighbors)
const;
149 void updateRangeTreeDb(
int nodeId,
153 int findParentTreeDb(
const cv::Mat& nodePos,
155 int& parentSplitAxis)
const;
171 QMap<
double, QVector<int> >& neighborList,
175 int maxNbNeighbors)
const;
Definition: dbenginebackend.h:157
Definition: facedbbackend.h:40
Definition: facedb_p.h:44
void vacuum()
Definition: facedb.cpp:134
void clearDNNTraining(const QString &context=QString())
clearDNNTraining : clear all trained data in the database
Definition: facedb_dnn.cpp:102
bool insertToTreeDb(const int nodeID, const cv::Mat &faceEmbedding) const
insertToTreeDb : insert a new node to spatial database
Definition: facedb_dnn_spatial.cpp:61
QMap< double, QVector< int > > getClosestNeighborsTreeDb(const cv::Mat &position, float sqRange, float cosThreshold, int maxNbNeighbors) const
getClosestNeighbors : return a list of closest neighbor, limited by maxNbNeighbors and sqRange
Definition: facedb_dnn_spatial.cpp:116
void deleteIdentity(int id)
Definition: facedb_identity.cpp:54
FaceDb(FaceDbBackend *const db)
Definition: facedb.cpp:30
void updateIdentity(const Identity &p)
Definition: facedb_identity.cpp:39
KDTree * reconstructTree() const
reconstructTree: reconstruct KD-Tree from data in the database
Definition: facedb_dnn.cpp:62
int getNumberOfIdentities() const
Definition: facedb_identity.cpp:133
BdEngineBackend::QueryState setSetting(const QString &keyword, const QString &value)
Definition: facedb.cpp:41
void clearIdentities()
Definition: facedb_identity.cpp:81
void clearTreeDb() const
Definition: facedb_dnn_spatial.cpp:156
int insertFaceVector(const cv::Mat &faceEmbedding, const int label, const QString &context) const
insertFaceVector : insert a new face embedding to database
Definition: facedb_dnn.cpp:31
QString setting(const QString &keyword) const
Definition: facedb.cpp:50
~FaceDb()
Definition: facedb.cpp:36
cv::Ptr< cv::ml::TrainData > trainData() const
trainData: extract train data from database
Definition: facedb_dnn.cpp:87
int addIdentity() const
Definition: facedb_identity.cpp:30
bool integrityCheck()
Definition: facedb.cpp:71
QList< Identity > identities() const
Definition: facedb_identity.cpp:86
QList< int > identityIds() const
Definition: facedb_identity.cpp:117
Definition: identity.h:41
Definition: piwigotalker.h:48
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43