Add ListBodyAlgorithmResult API.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-07-14 Version: 1.36.512
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-10 Version: 1.36.511
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
|
||||
@@ -34,8 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Attributes
|
||||
{
|
||||
std::string faceQuality;
|
||||
int rightBottomX;
|
||||
int rightBottomY;
|
||||
std::string faceStyle;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
std::string targetImageStoragePath;
|
||||
std::string faceScore;
|
||||
};
|
||||
std::string description;
|
||||
std::string qualityScore;
|
||||
Attributes attributes;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -44,6 +44,23 @@ void RecognizeFaceQualityResult::parse(const std::string &payload)
|
||||
data_.qualityScore = dataNode["QualityScore"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
auto attributesNode = dataNode["Attributes"];
|
||||
if(!attributesNode["LeftTopX"].isNull())
|
||||
data_.attributes.leftTopX = std::stoi(attributesNode["LeftTopX"].asString());
|
||||
if(!attributesNode["LeftTopY"].isNull())
|
||||
data_.attributes.leftTopY = std::stoi(attributesNode["LeftTopY"].asString());
|
||||
if(!attributesNode["RightBottomX"].isNull())
|
||||
data_.attributes.rightBottomX = std::stoi(attributesNode["RightBottomX"].asString());
|
||||
if(!attributesNode["RightBottomY"].isNull())
|
||||
data_.attributes.rightBottomY = std::stoi(attributesNode["RightBottomY"].asString());
|
||||
if(!attributesNode["TargetImageStoragePath"].isNull())
|
||||
data_.attributes.targetImageStoragePath = attributesNode["TargetImageStoragePath"].asString();
|
||||
if(!attributesNode["FaceStyle"].isNull())
|
||||
data_.attributes.faceStyle = attributesNode["FaceStyle"].asString();
|
||||
if(!attributesNode["FaceQuality"].isNull())
|
||||
data_.attributes.faceQuality = attributesNode["FaceQuality"].asString();
|
||||
if(!attributesNode["FaceScore"].isNull())
|
||||
data_.attributes.faceScore = attributesNode["FaceScore"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user