Explorar o código

Update GenerateHumanAnimeStyle.

sdk-team %!s(int64=5) %!d(string=hai) anos
pai
achega
de9c7e0bd2

+ 3 - 0
CHANGELOG

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

+ 3 - 0
facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h

@@ -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_;
 
 			};

+ 2 - 2
facebody/src/model/DetectPedestrianResult.cc

@@ -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)
 	{

+ 12 - 1
facebody/src/model/GenerateHumanAnimeStyleRequest.cc

@@ -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);
 }