sdk-team 6 лет назад
Родитель
Сommit
4b3913d6cd
4 измененных файлов с 14 добавлено и 11 удалено
  1. 3 0
      CHANGELOG
  2. 1 1
      VERSION
  3. 5 5
      vcs/include/alibabacloud/vcs/model/SearchFaceResult.h
  4. 5 5
      vcs/src/model/SearchFaceResult.cc

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-05-19 Version: 1.36.422
+- Initial version.
+
 2020-05-18 Version: 1.36.421
 - Support sequence for listNodes.
 - Support StrictSatisfiedTargetCapacity for applyNodes.

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.421
+1.36.422

+ 5 - 5
vcs/include/alibabacloud/vcs/model/SearchFaceResult.h

@@ -37,13 +37,13 @@ namespace AlibabaCloud
 					struct Record
 					{
 						std::string targetImageUrl;
-						int score;
-						int rightBottomX;
-						int rightBottomY;
+						float score;
+						float rightBottomX;
+						float rightBottomY;
 						std::string gbId;
 						std::string imageUrl;
-						int leftTopY;
-						int leftTopX;
+						float leftTopY;
+						float leftTopX;
 					};
 					int totalCount;
 					int pageSize;

+ 5 - 5
vcs/src/model/SearchFaceResult.cc

@@ -57,15 +57,15 @@ void SearchFaceResult::parse(const std::string &payload)
 		if(!dataNodeRecordsRecord["ImageUrl"].isNull())
 			recordObject.imageUrl = dataNodeRecordsRecord["ImageUrl"].asString();
 		if(!dataNodeRecordsRecord["LeftTopX"].isNull())
-			recordObject.leftTopX = std::stoi(dataNodeRecordsRecord["LeftTopX"].asString());
+			recordObject.leftTopX = std::stof(dataNodeRecordsRecord["LeftTopX"].asString());
 		if(!dataNodeRecordsRecord["LeftTopY"].isNull())
-			recordObject.leftTopY = std::stoi(dataNodeRecordsRecord["LeftTopY"].asString());
+			recordObject.leftTopY = std::stof(dataNodeRecordsRecord["LeftTopY"].asString());
 		if(!dataNodeRecordsRecord["RightBottomX"].isNull())
-			recordObject.rightBottomX = std::stoi(dataNodeRecordsRecord["RightBottomX"].asString());
+			recordObject.rightBottomX = std::stof(dataNodeRecordsRecord["RightBottomX"].asString());
 		if(!dataNodeRecordsRecord["RightBottomY"].isNull())
-			recordObject.rightBottomY = std::stoi(dataNodeRecordsRecord["RightBottomY"].asString());
+			recordObject.rightBottomY = std::stof(dataNodeRecordsRecord["RightBottomY"].asString());
 		if(!dataNodeRecordsRecord["Score"].isNull())
-			recordObject.score = std::stoi(dataNodeRecordsRecord["Score"].asString());
+			recordObject.score = std::stof(dataNodeRecordsRecord["Score"].asString());
 		if(!dataNodeRecordsRecord["TargetImageUrl"].isNull())
 			recordObject.targetImageUrl = dataNodeRecordsRecord["TargetImageUrl"].asString();
 		data_.records.push_back(recordObject);