Update DetectFace.

This commit is contained in:
sdk-team
2024-04-22 09:37:05 +00:00
parent 39478f1c33
commit 09d6015e09
3 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1893
1.36.1894

View File

@@ -47,6 +47,7 @@ namespace AlibabaCloud
};
std::vector<std::string> faceProbabilityList;
int landmarkCount;
std::vector<std::string> landmarkScore;
std::vector<std::string> faceRectangles;
std::vector<std::string> landmarks;
Qualities qualities;

View File

@@ -84,6 +84,9 @@ void DetectFaceResult::parse(const std::string &payload)
auto allLandmarks = dataNode["Landmarks"]["Landmark"];
for (auto value : allLandmarks)
data_.landmarks.push_back(value.asString());
auto allLandmarkScore = dataNode["LandmarkScore"]["LandmarkScore"];
for (auto value : allLandmarkScore)
data_.landmarkScore.push_back(value.asString());
}