Update GenerateHumanAnimeStyle.

This commit is contained in:
sdk-team
2020-11-19 02:10:10 +00:00
parent 9d2395215f
commit de9c7e0bd2
4 changed files with 20 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
2020-11-19 Version: patch
- Update GenerateHumanAnimeStyle.
2020-11-19 Version: patch
- Update SegmentBody.

View File

@@ -35,10 +35,13 @@ namespace AlibabaCloud
GenerateHumanAnimeStyleRequest();
~GenerateHumanAnimeStyleRequest();
std::string getAlgoType()const;
void setAlgoType(const std::string& algoType);
std::string getImageURL()const;
void setImageURL(const std::string& imageURL);
private:
std::string algoType_;
std::string imageURL_;
};

View File

@@ -40,10 +40,10 @@ void DetectPedestrianResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Width"].isNull())
data_.width = std::stoi(dataNode["Width"].asString());
if(!dataNode["Height"].isNull())
data_.height = std::stoi(dataNode["Height"].asString());
if(!dataNode["Width"].isNull())
data_.width = std::stoi(dataNode["Width"].asString());
auto allElementsNode = dataNode["Elements"]["Element"];
for (auto dataNodeElementsElement : allElementsNode)
{

View File

@@ -27,6 +27,17 @@ GenerateHumanAnimeStyleRequest::GenerateHumanAnimeStyleRequest() :
GenerateHumanAnimeStyleRequest::~GenerateHumanAnimeStyleRequest()
{}
std::string GenerateHumanAnimeStyleRequest::getAlgoType()const
{
return algoType_;
}
void GenerateHumanAnimeStyleRequest::setAlgoType(const std::string& algoType)
{
algoType_ = algoType;
setParameter("AlgoType", algoType);
}
std::string GenerateHumanAnimeStyleRequest::getImageURL()const
{
return imageURL_;
@@ -35,6 +46,6 @@ std::string GenerateHumanAnimeStyleRequest::getImageURL()const
void GenerateHumanAnimeStyleRequest::setImageURL(const std::string& imageURL)
{
imageURL_ = imageURL;
setBodyParameter("ImageURL", imageURL);
setParameter("ImageURL", imageURL);
}