Add face quality detection API.

This commit is contained in:
sdk-team
2020-06-23 20:07:28 +08:00
parent c9ae7d0b7e
commit 743309716b
4 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2020-06-23 Version: 1.36.479
- Add face quality detection API.
2020-06-23 Version: 1.36.478
- Add face quality detection API.

View File

@@ -1 +1 @@
1.36.478
1.36.479

View File

@@ -37,6 +37,7 @@ namespace AlibabaCloud
struct Record
{
std::string targetImageUrl;
std::string matchSuggestion;
float score;
float rightBottomX;
float rightBottomY;

View File

@@ -68,6 +68,8 @@ void SearchFaceResult::parse(const std::string &payload)
recordObject.score = std::stof(dataNodeRecordsRecord["Score"].asString());
if(!dataNodeRecordsRecord["TargetImageUrl"].isNull())
recordObject.targetImageUrl = dataNodeRecordsRecord["TargetImageUrl"].asString();
if(!dataNodeRecordsRecord["MatchSuggestion"].isNull())
recordObject.matchSuggestion = dataNodeRecordsRecord["MatchSuggestion"].asString();
data_.records.push_back(recordObject);
}
if(!value["Code"].isNull())