26 #ifndef DNN_FACE_EXTRACTOR_H
27 #define DNN_FACE_EXTRACTOR_H
39 #include "digikam_opencv.h"
64 cv::Mat alignFace(
const cv::Mat& inputImage)
const;
65 cv::Mat getFaceEmbedding(
const cv::Mat& faceImage);
70 static double cosineDistance(std::vector<float> v1, std::vector<float> v2);
71 static double L2squareDistance(std::vector<float> v1, std::vector<float> v2);
72 static double L2squareNormDistance(std::vector<float> v1, std::vector<float> v2);
77 static cv::Mat vectortomat(
const std::vector<float>& vector);
78 static QJsonArray encodeVector(
const std::vector<float>& vector);
79 static std::vector<float> decodeVector(
const QJsonArray& json);
Definition: datefolderview.cpp:43