Update GenerateHumanAnimeStyle.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-11-19 Version: patch
|
||||
- Update GenerateHumanAnimeStyle.
|
||||
|
||||
2020-11-19 Version: patch
|
||||
- Update SegmentBody.
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user