Add SourceId for SearchFace.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2020-07-22 Version: 1.36.527
|
||||||
|
- Add SourceId for SearchFace.
|
||||||
|
|
||||||
2020-07-22 Version: 1.36.526
|
2020-07-22 Version: 1.36.526
|
||||||
- Add source id for file uploader.
|
- Add source id for file uploader.
|
||||||
|
|
||||||
|
|||||||
@@ -36,12 +36,13 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
struct Record
|
struct Record
|
||||||
{
|
{
|
||||||
std::string targetImageUrl;
|
|
||||||
std::string matchSuggestion;
|
std::string matchSuggestion;
|
||||||
|
std::string targetImageUrl;
|
||||||
float score;
|
float score;
|
||||||
float rightBottomX;
|
float rightBottomX;
|
||||||
float rightBottomY;
|
float rightBottomY;
|
||||||
std::string gbId;
|
std::string gbId;
|
||||||
|
std::string sourceId;
|
||||||
std::string imageUrl;
|
std::string imageUrl;
|
||||||
float leftTopY;
|
float leftTopY;
|
||||||
float leftTopX;
|
float leftTopX;
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ void SearchFaceResult::parse(const std::string &payload)
|
|||||||
recordObject.leftTopX = std::stof(dataNodeRecordsRecord["LeftTopX"].asString());
|
recordObject.leftTopX = std::stof(dataNodeRecordsRecord["LeftTopX"].asString());
|
||||||
if(!dataNodeRecordsRecord["LeftTopY"].isNull())
|
if(!dataNodeRecordsRecord["LeftTopY"].isNull())
|
||||||
recordObject.leftTopY = std::stof(dataNodeRecordsRecord["LeftTopY"].asString());
|
recordObject.leftTopY = std::stof(dataNodeRecordsRecord["LeftTopY"].asString());
|
||||||
|
if(!dataNodeRecordsRecord["MatchSuggestion"].isNull())
|
||||||
|
recordObject.matchSuggestion = dataNodeRecordsRecord["MatchSuggestion"].asString();
|
||||||
if(!dataNodeRecordsRecord["RightBottomX"].isNull())
|
if(!dataNodeRecordsRecord["RightBottomX"].isNull())
|
||||||
recordObject.rightBottomX = std::stof(dataNodeRecordsRecord["RightBottomX"].asString());
|
recordObject.rightBottomX = std::stof(dataNodeRecordsRecord["RightBottomX"].asString());
|
||||||
if(!dataNodeRecordsRecord["RightBottomY"].isNull())
|
if(!dataNodeRecordsRecord["RightBottomY"].isNull())
|
||||||
@@ -68,8 +70,8 @@ void SearchFaceResult::parse(const std::string &payload)
|
|||||||
recordObject.score = std::stof(dataNodeRecordsRecord["Score"].asString());
|
recordObject.score = std::stof(dataNodeRecordsRecord["Score"].asString());
|
||||||
if(!dataNodeRecordsRecord["TargetImageUrl"].isNull())
|
if(!dataNodeRecordsRecord["TargetImageUrl"].isNull())
|
||||||
recordObject.targetImageUrl = dataNodeRecordsRecord["TargetImageUrl"].asString();
|
recordObject.targetImageUrl = dataNodeRecordsRecord["TargetImageUrl"].asString();
|
||||||
if(!dataNodeRecordsRecord["MatchSuggestion"].isNull())
|
if(!dataNodeRecordsRecord["SourceId"].isNull())
|
||||||
recordObject.matchSuggestion = dataNodeRecordsRecord["MatchSuggestion"].asString();
|
recordObject.sourceId = dataNodeRecordsRecord["SourceId"].asString();
|
||||||
data_.records.push_back(recordObject);
|
data_.records.push_back(recordObject);
|
||||||
}
|
}
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
|
|||||||
Reference in New Issue
Block a user