Add face quality detection API.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
struct Record
|
||||
{
|
||||
std::string targetImageUrl;
|
||||
std::string matchSuggestion;
|
||||
float score;
|
||||
float rightBottomX;
|
||||
float rightBottomY;
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user