Update DetectFace.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user