diff --git a/sdk/plugins/pp5.cpp b/sdk/plugins/pp5.cpp index abb25a6..ae54344 100644 --- a/sdk/plugins/pp5.cpp +++ b/sdk/plugins/pp5.cpp @@ -148,9 +148,9 @@ struct PP5Context return "Unknown"; } - static QHash toMetadata(const ppr_face_type &face) + static QMap toMetadata(const ppr_face_type &face) { - QHash metadata; + QMap metadata; ppr_face_attributes_type face_attributes; ppr_get_face_attributes(face, &face_attributes); @@ -250,7 +250,7 @@ class PP5Enroll : public UntrainableTransform dst.file.append(PP5Context::toMetadata(face)); dst += m; - if (!src.file.getBool("enrollAll")) break; + if (!src.file.get("enrollAll", false)) break; } ppr_free_face_list(face_list); @@ -259,7 +259,7 @@ class PP5Enroll : public UntrainableTransform contexts.release(context); - if (!src.file.getBool("enrollAll") && dst.isEmpty()) { + if (!src.file.get("enrollAll", false) && dst.isEmpty()) { if (detectOnly) dst += src; else dst += cv::Mat(); }